Interview Q&A · questions with model answers

pandas Interview Questions

Part of the study plan for: Machine Learning Engineer · Data Engineer

Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.

  1. A pandas script runs out of memory or takes too long on a large file. How do you fix it?

    Load less and store it more compactly: read only needed columns (usecols), set efficient dtypes (categories for repeated strings, smaller numeric types), process in chunks or with filters, use…

Was this page helpful?

Report a mistake