SchoolWhool
Quizzes and saved progress, freeSign in freeSign in
Data Tools · Module 2Module material

pandas interview questions

9 questions interviewers ask on pandas, from first principles to the follow-ups. The first 3 model answers are free to read; Pro opens the rest.

  1. Why does a successful CSV import not guarantee correct arithmetic?

    Type inference can leave numeric-looking values as text; inspect and convert explicitly.

  2. What is the difference between a Series and a DataFrame?

    A Series is one labeled dimension; a DataFrame has named columns and a row index.

  3. When do loc and iloc return different rows?

    When labels and integer positions differ, often after filtering or dropping rows.

  4. Why use loc for assignment?
  5. What does groupby().transform() return that agg() does not?
  6. How can a merge multiply rows?
  7. Why is a forward-filled temperature not a measured temperature?
  8. What must happen before monthly resampling?
  9. What is the grain of the two shop files?