Skip to content
masterclass Buddy

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.

Subscribe
  • compress
  • ndarray.take
  • take_along_axis

Source: numpy.take — NumPy v2.5 Manual. Checked 2026-11-03.