Exceptions
typedframes.ColumnGroupError(column, first_match, second_match)
Bases: Exception
Exception raised when a column is matched by multiple ColumnSets or Columns.
Initialize the error.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
column
|
str
|
The name of the column that matched multiple groups. |
required |
first_match
|
Column | ColumnSet | None
|
The first Column or ColumnSet that matched. |
required |
second_match
|
ColumnSet
|
The second ColumnSet that matched. |
required |
Source code in src/typedframes/column_group_error.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | |
Attributes
column
property
Return the name of the conflicting column.
Functions
__str__()
Return a string representation of the error message.
Source code in src/typedframes/column_group_error.py
33 34 35 36 37 | |
typedframes.MissingDependencyError(package, feature)
Bases: ImportError
Raised when an optional dependency is not installed.
Initialize with the missing package and feature that requires it.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
package
|
str
|
The name of the missing package (e.g., "polars"). |
required |
feature
|
str
|
The feature that requires this package (e.g., "Column.col"). |
required |
Source code in src/typedframes/missing_dependency_error.py
7 8 9 10 11 12 13 14 15 16 17 | |