polars_online.RefusedValueError¶
- class polars_online.RefusedValueError[source]¶
Bases:
ValueError,TypeErrorThe error raised for a refused value where
TypeErrorwas raised before.The value is out of range, or a combination of settings is refused, such as
reverse=Truewith nowindow_sizeto end the rows read ahead. It is aValueError, the class for a value out of range or a combination refused, and aTypeErrortoo, the class these refusals raised before. TheTypeErrorparent is dropped at the next major version, so catchValueError.Examples
try: po.ewm_mean("x", half_life=10.0, reverse=True) # no window_size except ValueError as e: # or TypeError, until then print(type(e).__name__, str(e).split(",")[0])
RefusedValueError po.ewm_mean: reverse=True needs window_size
See also
WrongTypeError, its counterpart for a value of the wrong type.