NumPy · Function
np.take
np.take selects array elements using integer indices. It can select along a chosen axis or from the flattened input.
Last updated
Syntax
numpy.take(a, indices, axis=None, out=None, mode='raise')In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
compressndarray.taketake_along_axis