Data analysis labNumPy problems

Problem 39 of 50 · Order · Easy

Sort high to low

Sort a copy of the scores descending.

Preparing NumPy, Pandas, and MatplotlibShift+Enter runs the cell you are in.

Print [18, 21, 19, 24, 22] sorted from high to low. np.sort returns a new ascending array. Reverse that result.

1

Your solution

2

Scratch