Export DataFrame to csv - Pumas

Dear all,

I’m trying to export dataframe to csv file in Pumas 2.0, but I don’t see it in Path where my csv file will be stored despite of no ERROR messages.

Thank you for your help.

using CSV
CSV.write("D:\\df_std.csv", df_simstd)
Output:
"D:\\df_std.csv"

Hi Tien,

I am not sure if the path you provided is hypothetical as such paths will not exist in JuliaHub.
You can try doing

using CSV
CSV.write("df_std.csv", df_simstd)

and check what is your working directory by doing

pwd()

and then check in that folder if that file exists.

Thank you Professor for your help,

It saves in the cloud rather than on my own computer. My mistake for not observing carefully.

1 Like