Tabari Brannon
05/04/2022, 8:37 PMFile "C:\etls\tractor_hours_analyzer\tractor_hours_analyzer.py", line 89, in <module>
transformed = transform_add_files_to_dataframe(extracted)
raise TypeError('too many positional arguments') from None
TypeError: too many positional argumentswith
Kevin Kho
05/04/2022, 8:38 PMtransform_add_files_to_dataframe
task definition?Tabari Brannon
05/04/2022, 8:39 PMdef transform_add_files_to_dataframe():
cwd = os.path.abspath('\\etls\\tractor_hours_analyzer')
files = os.listdir(cwd)
df = pd.DataFrame()
for file in files:
if file.endswith('.xlsx'):
df = df.append(pd.read_excel(file), ignore_index=True)
df.head()
return df
Kevin Kho
05/04/2022, 8:39 PMextracted
to that but it doesn’t accept anythingTabari Brannon
05/04/2022, 8:40 PMKevin Kho
05/04/2022, 8:40 PMTabari Brannon
05/04/2022, 8:40 PMKevin Kho
05/04/2022, 8:41 PMtransform_add_files_to_dataframe
accepted something. Otherwise you can do
with Flow() as flow:
a = task_a()
b = task_b(upstream_tasks=[a])
Tabari Brannon
05/04/2022, 8:43 PMKevin Kho
05/04/2022, 8:45 PM