pandas.Index.putmask
- 
Index.putmask(mask, value)[source] - 
return a new Index of the values set with the mask
See also
numpy.ndarray.putmask 
    © 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
    https://pandas.pydata.org/pandas-docs/version/0.23.4/generated/pandas.Index.putmask.html