NumPy · Function
np.put
numpy.put replaces selected elements of an array in place. It uses indices from the array’s flattened form and can control invalid-index handling with mode.
Last updated
Syntax
numpy.put(a, ind, v, mode='raise')In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
putmaskplaceput_along_axis