Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

csv saving is very slow using pd.to_csv

Aaryan Nakhat answered on June 8, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • code how pandas save csv file
  • saving to csv without the index
  • save dataframe to csv without index
  • time date in pandas to csv file
  • breaking big csv into chunks pandas
  • to_csv without index
  • add dataframe to existing csv file python
  • pandas read csv without scientific notation
  • pandas read csv without scientific notation
  • pandas continues update csv
  • code how pandas save csv file
  • pandas continues update csv
  • pytspark export dataframe to csv

  • csv saving is very slow using pd.to_csv

    0

    save it instead as a hdf file using:

    key refers to the object of the dataframe and mode is write ('w'), you can also use the append mode ('a') if you are saving it iteratively.


    Once this is done, you can convert it back to csv if needed using:

    df = pd.read_hdf(filename)

    df.to_csv(filename)

    Popularity 1/10 Helpfulness 1/10 Language javascript
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Jun 08 2023
    Aaryan Nakhat
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.