AlloViz.AlloViz.Elements.Element._replace_columnwise

Element._replace_columnwise(mapping: dict[Hashable, tuple[Any, Any]], inplace: bool, regex)

Dispatch to Series.replace column-wise.

Parameters:
mappingdict

of the form {col: (target, value)}

inplacebool
regexbool or same types as to_replace in DataFrame.replace
Returns:
DataFrame or None