pandas.api.extensions.ExtensionArray._is_monotonic_decreasing#
- property ExtensionArray._is_monotonic_decreasing[source]#
Return True if the array values are monotonically decreasing.
Subclasses can override this for performance. The default implementation falls back to computing ranks via
_rank.- Returns:
- bool
Whether the array values are monotonically decreasing.
See also
ExtensionArray._is_monotonic_increasingCheck for monotonically increasing values.
Examples
>>> arr = pd.array([3, 2, 1]) >>> arr._is_monotonic_decreasing True