Return the values of x that appear in b, using np.isin

NumPy · from unique and set operations

np.uniquereturn_countsreturn_inversenp.isinnp.intersect1dnp.union1dnp.setdiff1d

Putting the kettle on…

Starting up…

Exercise 3

Return the values of x that appear in b, using np.isin.

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