What is the role of the axis parameter in NumPy's sorting functions?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks what the axis parameter controls in NumPy sort, argsort and partition, and how the result differs for axis 0, axis -1 and None. It tests whether you understand sorting independent slices and can avoid scrambling the rows of a 2-D array.