numpy.ndarray.__setitem__

attribute

ndarray.__setitem__

x.__setitem__(i, y) <==> x[i]=y