put#

astropy.utils.masked.function_helpers.put(a, ind, v, mode='raise')[source]#

Replaces specified elements of an array with given values.

Like numpy.put, but for masked array a and possibly masked value v. Masked indices ind are not supported.