pandas.Index.putmask

Index.putmask(mask, value)[source]

return a new Index of the values set with the mask

See also

numpy.ndarray.putmask