pandas.core.groupby.SeriesGroupBy.is_monotonic_decreasing#
- свойство SeriesGroupBy.is_monotonic_decreasing[источник]#
Возвращает, являются ли значения каждой группы монотонно убывающими.
- Возвращает:
- 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