How does the axis parameter work across pandas methods, and what does axis=0 vs axis=1 mean?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Explain how the axis parameter works in pandas and what axis=0 and axis=1 mean for reductions, drop, dropna, apply and concat. It tests whether you can predict the shape and index of a result and avoid the usual row versus column mix-ups.