Skip to content
ml-recall

#argsort

1 question from NumPy

Timed test

1 question · 1 min · score and explanations at the end

Take a test
Q 1 / 1Score 0 / 0

Question 1: Short answer

hardAI-checkedNumPy
a = np.array([30, 10, 20, 40])
print(a.argsort())
print(a.argsort().argsort())

The first line prints [1 2 0 3]. What does the second line print?

Four integers, e.g. [3, 1, 0, 2]