numpy.ma.masked_array.put
method
- ma.masked_array.put(indices, values, mode='raise')
Set storage-indexed locations to corresponding values.
Sets self._data.flat[n] = values[n] for each n in indices. If values is shorter than
indicesthen it will repeat. If values has some masked values, the initial mask is updated in consequence, else the corresponding values are unmasked.- Parameters: