apply_implicit_component_maps()
Apply ImplicitComponentMap rules to a DataFrame.
Usage
apply_implicit_component_maps(
df,
implicit_maps,
verbose=False,
)Copies values from source to target columns, supporting different source/target names.
Parameters
df: pd.DataFrame-
The source dataset.
implicit_maps: list[px.model.map.ImplicitComponentMap]-
A list of ImplicitComponentMap objects.
verbose: bool = False- If True, log applied mappings at INFO level (DEBUG otherwise). Missing-source warnings are always logged at WARNING level.
Returns
pd.DataFrame- DataFrame with implicit component mappings applied.