Return the values that are in x but not in b

NumPy · from unique and set operations

np.uniquereturn_countsreturn_inversenp.isinnp.intersect1dnp.union1dnp.setdiff1d

Putting the kettle on…

Starting up…

Exercise 4

Return the values that are in x but not in b.

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