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.
- Why does a successful CSV import not guarantee correct arithmetic?
Type inference can leave numeric-looking values as text; inspect and convert explicitly.
- 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.
- When do
locandilocreturn different rows?When labels and integer positions differ, often after filtering or dropping rows.
- Why use
locfor assignment? - What does
groupby().transform()return thatagg()does not? - How can a merge multiply rows?
- Why is a forward-filled temperature not a measured temperature?
- What must happen before monthly resampling?
- What is the grain of the two shop files?