is_monotonically_increasing#

API documentation for tradeexecutor.utils.increasing.is_monotonically_increasing Python function.

is_monotonically_increasing(series, index=2)[source]#

Check if a series is monotonically increasing.

Parameters:
  • series (pandas.core.series.Series | list) – A pandas.Series object or a list.

  • index (int) – The number of latest elements to check for monotonically increasing series.

Returns:

bool. True if the series is monotonically increasing, False otherwise.

Return type:

bool