Memory

Pandas

Pandas - Memory Optimization Tips

• Pandas DataFrames can consume 10-100x more memory than necessary due to default data types—switching from int64 to int8 or using categorical types can reduce memory usage by 90% or more

Read more →
Pandas

Pandas: Memory Usage Reduction

Pandas defaults to memory-hungry data types. Load a CSV with a million rows, and Pandas will happily allocate 64-bit integers for columns that only contain values 0-10, and store repeated strings…

Read more →
Python

NumPy: Memory Layout Explained

Memory layout is the difference between code that processes gigabytes in seconds and code that crawls. When you create a NumPy array, you’re not just storing numbers—you’re making architectural…

Read more →