| [ Web Proxy ] |
| Viewing: https://numpy.org/doc/stable/reference/generated/../generated/numpy.ndarray.__class_getitem__.html | [Back] [Original] |
method
ndarray[shape, dtype]
Return a parametrized wrapper around the ndarray type.
New in version 1.22.
A parametrized ndarray type.
See also
Type hinting generics in standard collections.
numpy.typing.NDArrayAn ndarray alias generic w.r.t. its dtype.type.
Examples
>>> import numpy as np
>>> np.ndarray[tuple[int], np.dtype[np.uint8]]
numpy.ndarray[tuple[int], numpy.dtype[numpy.uint8]]
| Web Proxy Viewer | New URL | Original Page |