openmnglab.datamodel.pandas.model.PanderaSchemaAcceptor#
- class openmnglab.datamodel.pandas.model.PanderaSchemaAcceptor(schema: TPanderaSchema)[source]#
Bases:
Generic[TPanderaSchema],ISchemaAcceptorMethods
__init__(schema)accepts(output_data_scheme)Assess whether this scheme would accept the other data scheme as input.
- accepts(output_data_scheme: IDataSchema) bool[source]#
Assess whether this scheme would accept the other data scheme as input.
If the schemes are incompatible, the function may either raise an exception containing further details on why the other data scheme is not accepted as input or just return
False- Raises:
DataSchemeCompatibilityError – If the data schemes are not compatible and further details are available
- Parameters:
output_data_scheme – Output data scheme to check for compatibility
- Returns:
Trueif the output data scheme is accepted as input,Falseotherwise