numpy.ndarray.__setitem__

method

ndarray.__setitem__(self, key, value, /)

Set self[key] to value.