openclean.function.eval.mapping module

Evaluation functions that wrap mapping functions.

class openclean.function.eval.mapping.Standardize(columns: Union[int, str, histore.document.schema.Column, openclean.function.eval.base.EvalFunction, List[Union[int, str, histore.document.schema.Column, openclean.function.eval.base.EvalFunction]]], mapping: Dict)

Bases: openclean.function.eval.base.EvalFunction

Use a mapping dictionary to standardize values from one or more input column. For a given value that is extracted from the input column(s), if a mapping is defined in the dictionary the mapped value is returned. For all other values the original value is returned.