errors
errors ¤
Custom warnings and exceptions for ts-shape.
Follows the pandas/scikit-learn pattern:
- warnings.warn() for user-facing feedback (visible by default).
- logging for internal diagnostics (silent unless configured).
Users can filter specific categories, e.g.::
import warnings
from ts_shape.errors import PerformanceWarning
warnings.filterwarnings("ignore", category=PerformanceWarning)
TsShapeWarning ¤
Bases: UserWarning
Base warning for all ts-shape warnings.
PerformanceWarning ¤
Bases: TsShapeWarning
Warn when an operation may be slow due to data size or shape.
DataQualityWarning ¤
Bases: TsShapeWarning
Warn about potential data quality issues (gaps, duplicates, NaNs).
ColumnNotFoundError ¤
Bases: KeyError
Raised when a required column is missing from the DataFrame.