pandas reduce memory usage: An 8-Item Checklist Tested on a 2-Million-Row Stock Mentions Table
#python #pandas #datascience #performance To reduce pandas memory usage, measure with df.memory_usage(deep=True), then fix dtypes column by column: low-cardinality text to category, small integers to int8/int16, scores to float32, date strings to datetime64, Y/N flags to bool, and pass those…