Where the file goes to after dataframe.to_csv("file name.csv")
Where the file goes to after dataframe.to_csv("file name.csv")?
if it's not on my local machine, how I can download the python notebook output?
Hi Huiyue !
We've actually just implemented this in Python Notebook! You can export a pandas Dataframe to CSV by using the following code:
import notebooksalamode as mode mode.export_csv(Your_Dataframe)
Using this code does a couple of things:
1. In your Notebook, you'll see a button in the output cell associated with your executed code, which you can click to download the CSV
2. The CSV is added to the bucket of files available for batch-export; you can grab all such exported DataFrames alongside the SQL results from your report
Here's an example report that uses this code:
Let us know how this works for you!