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.
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.
Become a Member to join the conversation.