Dmitry Mogilevsky
07/03/2022, 8:25 PM@op
def join_data_and_add_calculated_columns(dataframes:List[CustomDataFrameType1])->CustomDataFrameType2:
if not dataframes:
return pd.DataFrame()
full_df = pd.concat(dataframes)
Before I started using custom types created by create_dagster_pandas_dataframe_type
this was no problem. Now its an issues because return pd.DataFrame()
does not pass validation. What's the recommended behaviour when you don't have inputs and want to return an empty dataframe?Ismael Rodrigues
07/03/2022, 11:31 PMprha
07/05/2022, 9:13 PMNone
by making the datatype Optional