openmnglab.datamodel.pandas.model.PandasOutputDataScheme#

class openmnglab.datamodel.pandas.model.PandasOutputDataScheme(schema: TPandasScheme)[source]#

Bases: Generic[TPandasScheme], PandasDataScheme[TPandasScheme], IOutputDataScheme

__init__(schema: TPandasScheme)#

Methods

__init__(schema)

validate(data_container)

Validates that a data container fits this scheme.

Attributes

pandera_schema

validate(data_container: IDataContainer) bool[source]#

Validates that a data container fits this scheme.

If this is not the case, the function may either raise an exception containing further details on why the validation failed or just return False :raise DataSchemeConformityError: If the schemes are not compatible to each other and detailed information is available :param data_container: Data container to validate :return: True if the data container conforms to this scheme, False otherwise.