Pandas Intermediate Quiz
Explore groupby, merging, reshaping, time series, and data cleaning techniques
Start the quizSample questions from this quiz
A preview of the style and depth. Try each one, then reveal the answer — or skip straight to the timed quiz.
1. What is groupby()?
- Filters data
- Sorts data
- Groups data by column values for aggregation
- Joins data
Show answer
Answer: Groups data by column values for aggregation. groupby() splits data into groups based on criteria. Apply aggregation functions (mean, sum, count). Foundation of split-apply-combine pattern in Pandas.
2. How do you perform aggregation on groups?
- df.aggregate('col', function)
- df.group('col').apply(function)
- df.summarize('col', function)
- df.groupby('col').agg(function)
Show answer
Answer: df.groupby('col').agg(function). Use df.groupby('col').agg(func). Can use built-in (mean, sum) or custom functions. Pass multiple functions or dict for different columns.
3. What is merge()?
- Merges columns
- Concatenates DataFrames
- Combines rows
- Joins DataFrames like SQL join
Show answer
Answer: Joins DataFrames like SQL join. pd.merge(df1, df2) performs database-style joins. Types: inner, outer, left, right. Join on columns or indices. Similar to SQL JOIN operations.
Frequently asked questions
How many questions are in this Pandas quiz?+
30 questions, with a 60-minute time limit. Every question includes a written explanation of the correct answer.
Is this Pandas quiz free?+
Yes. Every quiz on CodexQuizz is free and needs no account. You only enter a name if you choose to post your score to the leaderboard.
What level is the intermediate quiz aimed at?+
Explore groupby, merging, reshaping, time series, and data cleaning techniques
Can I use this to prepare for a Pandas interview?+
Yes. The questions cover the topics that come up in Pandas technical screens, and the explanations are written so that a wrong answer still teaches you the underlying concept.
Ready to test your Pandas?
30 questions, 60 minutes. Free, no sign-up.
Start now