Pandas interview questions for data analysts

Work with DataFrames from a grocery delivery app: reshape tables, calculate metrics and repair a colleague’s notebook. Read the example input and expected output here, then run real pandas in your browser. The exercises are free and need no account.

10 questions · Easy to hard · Real pandas in your browser

Easy Pandas questions

Medium Pandas questions

Hard Pandas questions

How to practice for your interview

  1. Start with an easy question and identify the index, columns and row grain of the result.
  2. Use medium questions to practice grouping, reshaping and time windows. Check whether a merge changes the number of rows.
  3. Attempt a hard question or a notebook to fix. Verify denominators, missing values and dates before trusting a metric.

Check more than the sample

Put your answer in result. Check column names, duplicates and missing values; for a rolling window, include a date with no orders in your own test case.

Read the shared data rules for dates, delivered orders and output conventions.

More interview practice

All interview questions