InvalidColumnTypeError#

class openstef_core.exceptions.InvalidColumnTypeError(column: str, expected_type: str, actual_type: str)[source]#

Bases: TypeError

Exception raised when a DataFrame column has an invalid type.

Parameters:
  • column (str)

  • expected_type (str)

  • actual_type (str)

__init__(column: str, expected_type: str, actual_type: str)[source]#

Initialize the exception with details about the type mismatch.

Parameters:
  • column (str) – Name of the column with the invalid type.

  • expected_type (str) – The expected data type for the column.

  • actual_type (str) – The actual data type found in the column.

  • column

  • expected_type

  • actual_type