SpinTheMic
Pro

Interview practice question

CSV file too large for memory

Data Analyst · Python and Pandas · Intermediate

You need to analyse a 20 GB CSV file on a laptop with 16 GB of RAM. What are your options?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Read in chunks and aggregate incrementally.
  • usecols/dtype to reduce size.
  • Convert to Parquet.
  • DuckDB or Polars lazy scanning.
  • Sample for exploration.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics