(Prefect 2) I want my flow to write a file (more t...
# ask-community
m
(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
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
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
thx for the update!