If I have a `@dynamic` workflow that returns a get...
# ask-the-community
e
If I have a
@dynamic
workflow that returns a gets tasks that returns a
Dataframe
how can I concat those frames at the end or after the dynamic into one single frame ? 🤔 my flow returns
list[pd.DataFrame]:
and then concat task takes
Copy code
@task
def concat_frames(frames: list[pd.DataFrame]) -> pd.DataFrame:
    return pd.concat(frames)
In my main workflow I then
Copy code
concat_frames(frames=action_frames)
k
I see one problem of memory bloat as both input and output will need memory and pandas syntax you should try
e
Hmm ok
wdym ?
s
may i know why you want to use dynamic workflow in this case?
e
I have a output from a previous workflow that changes how many instances of a given workflow I need to run
s
right, okay. so have you tried implementing the approach you described?
e
Yes, but the error was bit hidden with one of the arguments to a task having a typo with
=
instead of the
: