What does pandas concat() do with the keys and axis arguments when stacking DataFrames?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: A pandas question on how concat() stacks DataFrames by rows or by columns and what the keys argument adds to the result. It tests label alignment, NaN filling for labels only some inputs have, MultiIndex construction and selecting one source block afterwards.