Spec-Zone.ru › pandas 2

pandas.core.groupby.SeriesGroupBy.is_monotonic_increasing

propertySeriesGroupBy.is_monotonic_increasing[source]

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

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

Примеры

>>> s = pd.Series([2, 1, 3, 4], index=['Falcon', 'Falcon', 'Parrot', 'Parrot'])
>>> s.groupby(level=0).is_monotonic_increasing
Falcon    False
Parrot     True
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_increasing.html

Spec-Zone.ru

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