NumPy · Function
np.isin
Tests whether each value in an array occurs in another collection. It returns a Boolean mask with the same shape as element.
Last updated
Syntax
numpy.isin(element, test_elements, assume_unique=False, invert=False, *, kind=None)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
numpy.ma.isinnumpy.nonzeronumpy.in1d