Pandas, Machine Learning, Large Datasets, Data Analysis, Data Science.
to ‘category’ as it stores the data more compactly. >>> data.memory_usage() Index 128 income 8000000 current_address_months_count 8000000 customer_age 8000000 payment_type 8000000 # Change the datatype of payment_type from object to category >>> data["payment_type"] =