There was an error while loading. Please reload this page.
To assign values to a slice of a numpy array it's possible to do e.g.:
import numpy as np a = np.zeros((2, 2)) a[:, 0] = 1
It would be good to add how to do this in ndarray to the ndarray for numpy users docs
To assign values to a slice of a numpy array it's possible to do e.g.:
It would be good to add how to do this in ndarray to the ndarray for numpy users docs