pandas.Index.is_monotonic_increasing#

property Index.is_monotonic_increasing#

如果索引是单调递增(仅等于或递增)值,则返回。

示例

>>> Index([1, 2, 3]).is_monotonic_increasing
True
>>> Index([1, 2, 2]).is_monotonic_increasing
True
>>> Index([1, 3, 2]).is_monotonic_increasing
False