numpy.ndarray.__getitem__

method

ndarray.__getitem__(key, /)

Return self[key].