Spec-Zone.ru › pandas 2

pandas.core.groupby.SeriesGroupBy.is_monotonic_decreasing

propertySeriesGroupBy.is_monotonic_decreasing[source]

Возвращает, являются ли значения каждого группирования монотонно убывающими.

Возвращает:
Series

Примеры

>>> s = pd.Series([2, 1, 3, 4], index=['Falcon', 'Falcon', 'Parrot', 'Parrot'])
>>> s.groupby(level=0).is_monotonic_decreasing
Falcon     True
Parrot    False
dtype: bool

© 2008–2022, 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/2.2.2/reference/api/pandas.core.groupby.SeriesGroupBy.is_monotonic_decreasing.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API