How can you use NumPy's argsort() function, and in what scenarios is it particularly useful?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks how NumPy's argsort works and where it is useful in data work. Tests indirect sorting of parallel arrays, top-k selection, ranking by applying argsort twice, handling of ties, NaN values and descending order, and when argpartition or lexsort fits better.