So: ```with Flow("Data preprocess" as data_preproc...
# prefect-community
o
So:
Copy code
with Flow("Data preprocess" as data_preprocess_flow:
  ...

with Flow("Visualization" as visualization_flow:
  ...
vs:
Copy code
with Flow("Monolithic data pipeline") as monolithic_flow:
   res = data_preprocess(dataframe)
   res = train(res)
   ...
1
r
In Prefect 2 you can you use subflows, which might be a good fit. I recommend reading this, especially the 'Subflows or tasks?' section.
o
Thanks a lot Ryan this is very helpful
Out of mere curiosity, how have people accomplished this in Prefect 1?
r
I believe a flow of flows would be the Prefect 1 equivalent: https://docs-v1.prefect.io/core/idioms/flow-to-flow.html#scheduling-a-flow-of-flows
🙌 1