compatibility

This module contains wrappers to use instead of externally imported ones for compatibility reasons.

They enable a broader compatibility of our package with its dependencies.

dataframe_map(df, *args, **kwargs)

Wraps DataFrame.map().

Parameters
  • df (DataFrame) –

  • args – args passed to DataFrame.map()

  • kwargs – kwargs passed to DataFrame.map()

Returns

result

Return type

DataFrame

Note

Only used internally to account for possible different versions of pandas installed (in this case, pandas>=2.1.0).

See also

Method DataFrame.map

Documentation of wrapped method DataFrame.map().