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 gzip:
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! Make it stick: Mentor AI will check what you’ve got down, help you build something with it, and find your #1 takeaway to share in the discussion.
Or go straight to the discussion section and share your #1 takeaway and how you’ll put your new skills to use.
andrewcheryl on April 12, 2019
Awesome course - full of really useful tips. Thankyou !