Skip to content
Advertisement

Pandas won’t create CSV file?

just trying to save websockets to CSV’s. But it just doesnt make the file. Nothing in the directory. Tried running VScvode as admin, moving folder out of C: drive to documents .. nothing. no csv file, and no error. and no information on the internet about this either.

So i kept stripping down the code to the most basic, and it still wont create the file

The dataframe is in-tact and working, and printing the dataframe gets this :

JavaScript

… (continued)

JavaScript

Advertisement

Answer

Try this:

JavaScript

This will give you the file directory that the file is currently running on, so you can drop the file there.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement