numpy.ndarray.__class_getitem__
method
- ndarray.__class_getitem__($cls, item, /)
ndarray[shape, dtype]
Return a parametrized wrapper around the
ndarraytype.
method
ndarray[shape, dtype]
Return a parametrized wrapper around the ndarray type.
A parametrized ndarray type.
>>> import numpy as np
>>> np.ndarray[tuple[int], np.dtype[np.uint8]]
numpy.ndarray[tuple[int], numpy.dtype[numpy.uint8]]