Write Pandas Objects Directly to Compressed Formats
Since Pandas version 0.21.0 you can save your DataFrames in a compressed format to save space.
Have a look at this short and sweet recipe to save a DataFrame in a compressed format using
abalone.to_json('df.json.gz', orient='records', lines=True, compression='gzip')
Watch the video to learn more about it.
Comments & Discussion
Become a Member to join the conversation.