Interview practice question
pandas runs out of memory on a large CSV
Machine Learning · ML Frameworks · Beginner
Loading a 15 GB CSV with pandas crashes your laptop. What do you do?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Load only needed columns (usecols); efficient dtypes.
- Read in chunks for aggregation.
- Convert to Parquet.
- Use Polars/DuckDB (lazy, streaming).
- Sample for exploration.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.