NumPy · Lesson 3.1 · Pro
Sorting and top k
Sort values, sort one array by another, and pick the top k items, a classic interview task.
In this lesson
- Sort values
- Positions with argsort
- Sort one array by another
- Sorting each row
Go Pro to read this lesson
Pro unlocks every lesson and practice problem in SQL, Python, pandas and NumPy, with answers and step-by-step explanations.