pandas.Index.is_monotonic_decreasing#
- property Index.is_monotonic_decreasing[源代码]#
如果值相等或递减,则返回布尔值。
- Returns:
- bool
参见
Index.is_monotonic_increasing检查值是否相等或递增。
Examples
>>> pd.Index([3, 2, 1]).is_monotonic_decreasing True >>> pd.Index([3, 2, 2]).is_monotonic_decreasing True >>> pd.Index([3, 1, 2]).is_monotonic_decreasing False