NumPy · Pipe
ndarray.ndim
ndarray.ndim is the number of dimensions in a NumPy array. Use it to find how many axes the array has.
Last updated
Syntax
ndarray.ndimIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
numpy.ndimndarray.shapeshape