What is the keepdims parameter in NumPy aggregations, and why is it useful?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks what the keepdims argument does in NumPy reductions such as sum, mean and max, and why it is useful. Tests understanding of array shapes and broadcasting rules, and of the shape bugs that appear when a reduced axis is dropped.