https://prefect.io logo
Title
m

Mohamed Ayoub Chettouh

08/20/2022, 3:37 PM
(Prefect 2) I want my flow to write a file (more technically, I want one of the tasks to do it). My file system block is GCS but its preferable if it outputs locally. Currently, the file seems like it isn't created at all. What to do?
1
a

Anna Geller

08/20/2022, 7:57 PM
do you have an example code showing what you try to do and what doesn't work as expected here? in Prefect, you can essentially write Python so once you figure out how you need to write your data in Python, you can deploy/schedule/operationalize that with Prefect
Are you using tabular data? If so, Pandas has convenient methods to dump data into any format like
<http://df.to|df.to>_csv(), <http://df.to|df.to>_parquet()
etc.
m

Mohamed Ayoub Chettouh

08/20/2022, 9:19 PM
I'm saving using pandas. I use tocsv but it doesn't save.
To anyone looking for an answer. Use the absolute path.
🙌 1
a

Anna Geller

08/21/2022, 6:57 PM
thx for the update!