pandas.core.groupby.SeriesGroupBy.is_monotonic_increasing#

property SeriesGroupBy.is_monotonic_increasing[源代码]#

返回每个组的值是否单调递增。

返回:
系列

例子

>>> 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