Asked about Memory, views and larger-than-memory data
How do you reduce the memory a DataFrame uses?
An answer that works
Choose smaller numeric types where the range allows, convert repeated strings to categorical, and read only the columns you need from a columnar format.
Reading an answer is not being able to give one. The section that teaches this is Memory, views and larger-than-memory data, 4 hours of NumPy & pandas.
Learn this properlyAlso asked about NumPy & pandas
Why is vectorised NumPy faster than a Python loop?What does SettingWithCopyWarning mean?How would you handle missing values?What is the difference between a view and a copy in NumPy?After a join, your total revenue doubled. What happened?A pandas job on a 20 GB CSV runs out of memory. What are your options?