Return the distinct values in x

NumPy · from unique and set operations

np.uniquereturn_countsreturn_inversenp.isinnp.intersect1dnp.union1dnp.setdiff1d

Putting the kettle on…

Starting up…

Exercise 1

Return the distinct values in x.

your answer
stuck? the lesson behind it
unique and set operations
Distinct values, frequency tables, and the vectorised version of `in`.