https://prefect.io logo
Title
j

Jack Chang

03/04/2022, 6:40 PM
Im trying to return three pandas dataframes in a task (aka function) and it gives me this
TypeError: Task is not iterable. If your task returns multiple results, pass `nout` to the task decorator/constructor, or provide a `Tuple` return-type annotation to your task.
Can anyone point me to an example where I can make it iterable?
k

Kevin Kho

03/04/2022, 6:42 PM
That would be here but note this wont work with mapping. You can also use one list or one dict
j

Jack Chang

03/04/2022, 6:46 PM
Thanks!