pandas.api.extensions.ExtensionArray._is_monotonic_increasing#

property ExtensionArray._is_monotonic_increasing[source]#

Return True if the array values are monotonically increasing.

Subclasses can override this for performance. The default implementation falls back to computing ranks via _rank.

Returns:
bool

Whether the array values are monotonically increasing.

See also

ExtensionArray._is_monotonic_decreasing

Check for monotonically decreasing values.

Examples

>>> arr = pd.array([1, 2, 3])
>>> arr._is_monotonic_increasing
True