What are read_parquet and read_feather, and when would you choose them over read_csv?

Quick Overview

Explain what pandas read_parquet and read_feather do and when Parquet or Feather files are a better choice than CSV. Tests knowledge of columnar storage, dtype preservation, column pruning and row filters, and the trade-offs between file formats.

What are read_parquet and read_feather, and when would you choose them over read_csv?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

What are `read_parquet` and `read_feather` in pandas, and when would you choose them over `read_csv`? ```hint Compare what each format keeps Think about what a CSV file throws away about each column, and how a columnar file lets a reader skip data it does not need. ``` ### What a Strong Answer Covers - What each function reads and which library it depends on - How a binary columnar format differs from CSV in file size, read speed and type fidelity - When Parquet is the better fit and when Feather is - How to read only part of a file with column selection and row filters - The cases where CSV is still the right choice ### Follow-up Questions - After a CSV round trip, ZIP codes lost their leading zeros and an integer ID column came back as floats. What happened, and how do Parquet and Feather avoid it? - How does Parquet's row-group layout let a reader skip data, and which choices at write time make that work well? - What problems come from writing thousands of very small Parquet files, and how would you fix them? - How would you work with a Parquet data set that is larger than memory?

Overview: Explain what pandas read_parquet and read_feather do and when Parquet or Feather files are a better choice than CSV. Tests knowledge of columnar storage, dtype preservation, column pruning and row filters, and the trade-offs between file formats.

Nov 24, 2026
mediumData ScientistOtherData Manipulation (SQL/Python)
0
0

What are read_parquet and read_feather in pandas, and when would you choose them over read_csv?

What a Strong Answer Covers Guidance

  • What each function reads and which library it depends on
  • How a binary columnar format differs from CSV in file size, read speed and type fidelity
  • When Parquet is the better fit and when Feather is
  • How to read only part of a file with column selection and row filters
  • The cases where CSV is still the right choice

Follow-up Questions Guidance

  • After a CSV round trip, ZIP codes lost their leading zeros and an integer ID column came back as floats. What happened, and how do Parquet and Feather avoid it?
  • How does Parquet's row-group layout let a reader skip data, and which choices at write time make that work well?
  • What problems come from writing thousands of very small Parquet files, and how would you fix them?
  • How would you work with a Parquet data set that is larger than memory?