Reducing the size of your data can sometimes be tricky. In this quick tutorial, we will demonstrate how to reduce the size of your dataframe in half by down casting allowing you to do more with less.

Background

Whether you are building a model for a hobby project or for work purposes, chances are that your first attempt will include opening up a jupyter notebook and reading in some data. Eventually you will undoubtly run into the memory issues with your notebook. Before you start dropping rows or try complex sampling techniques to reduce the size of your data, you should check the structure of the data.

#data-science #python #downcast #data #pandas #how to reduce the size of a pandas dataframe in python

How to Reduce the Size of a Pandas Dataframe in Python
1.40 GEEK