pd.Index.putmask
¶
pandasIndex.putmask(cond, other=None)
Supported Arguments:¶
cond
: can be a Series or 1-dim array of booleansother
: can be a scalar, non-categorical Series, 1-dim numpy array or StringArray with a matching type for the Index
Unsupported Index Types
- IntervalIndex
- MultiIndex
Important
Only supported for CategoricalIndex if the elements of other are the same as (or a subset of) the categories of the CategoricalIndex.