polars.exceptions.InvalidOperationError#

exception polars.exceptions.InvalidOperationError[source]#

Exception raised when an operation is not allowed (or possible) against a given object or data structure.

Examples

>>> s = pl.Series("a", [1, 2, 3])
>>> s.is_in(["x", "y"])
polars.exceptions.InvalidOperationError: `is_in` cannot check for String values in Int64 data