pandas.Index.where
-
Index.where(cond, other=None)[source] -
Возвращает Индекс той же формы, что и self, чьи соответствующие записи берутся из self, где cond истинно, а в противном случае — из other.
Введено в версии 0.19.0.
Параметры: -
cond : boolean array-like with the same length as self -
other : scalar, or array-like
-
© 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.24.2/reference/api/pandas.Index.where.html