Skip to content

PlainTableError

Bases: TypeError

Raised when a plain table is used instead of a TabularDataset.

Source code in src/safeds/exceptions/_ml.py
class PlainTableError(TypeError):
    """Raised when a plain table is used instead of a TabularDataset."""

    def __init__(self) -> None:
        super().__init__(
            (
                "This method needs a tabular dataset. "
                "It knows which columns are features and which are the target to predict.\n"
                "Use `Table.to_tabular_dataset()` to create a tabular dataset."
            ),
        )