Exceptions#

ColumnNotFoundError

Exception raised when a specified column is not found.

ComputeError

Exception raised when Polars could not perform an underlying computation.

DuplicateError

Exception raised when a column name is duplicated.

InvalidOperationError

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

NoDataError

Exception raised when an operation cannot be performed on an empty data structure.

NoRowsReturnedError

Exception raised when no rows are returned, but at least one row is expected.

PolarsError

Base class for all Polars errors.

PolarsPanicError

Exception raised when an unexpected state causes a panic in the underlying Rust library.

RowsError

Exception raised when the number of returned rows does not match expectation.

SchemaError

Exception raised when an unexpected schema mismatch causes an error.

SchemaFieldNotFoundError

Exception raised when a specified schema field is not found.

ShapeError

Exception raised when trying to perform operations on data structures with incompatible shapes.

StructFieldNotFoundError

Exception raised when a specified Struct field is not found.

TooManyRowsReturnedError

Exception raised when more rows than expected are returned.