rheon.RefusedValueError

class rheon.RefusedValueError[source]

Bases: ValueError

The error raised for a refused value.

The value is out of range, or a combination of settings is refused, such as reverse=True with no window_size to end the rows read ahead. It is a ValueError, the class for a value out of range or a combination refused.

Examples

try:
    rp.ewm_mean("x", half_life=10.0, reverse=True)   # no window_size
except ValueError as e:
    print(type(e).__name__, str(e).split(",")[0])
RefusedValueError rp.ewm_mean: reverse=True needs window_size

See also