| [ Web Proxy ] |
| Viewing: https://numpy.org/doc/stable/reference/generated/../generated/../generated/numpy.ndarray.ndim.html | [Back] [Original] |
Section Navigation
ndarray)dtype)ndarray)attribute
Number of array dimensions.
Examples
>>> import numpy as np
>>> x = np.array([1, 2, 3])
>>> x.ndim
1
>>> y = np.zeros((2, 3, 4))
>>> y.ndim
3
Copyright 2008-2026, NumPy Developers.
Created using Sphinx 7.2.6.
Built with the PyData Sphinx Theme 0.17.1.
| Web Proxy Viewer | New URL | Original Page |