raccoon.utils module
Raccoon utilities
- raccoon.utils.assert_frame_equal(left: DataFrame, right: DataFrame, data_function: Callable[[...], Any] | None = None, data_args: dict[str, Any] | None = None) None[source]
For unit testing equality of two DataFrames.
- Parameters:
left – first DataFrame
right – second DataFrame
data_function – if provided will use this function to assert compare the df.data
data_args – arguments to pass to the data_function
- Returns:
nothing
- raccoon.utils.assert_series_equal(left: SeriesType, right: SeriesType, data_function: Callable[[...], Any] | None = None, data_args: dict[str, Any] | None = None) None[source]
For unit testing equality of two Series.
- Parameters:
left – first Series
right – second Series
data_function – if provided will use this function to assert compare the df.data
data_args – arguments to pass to the data_function
- Returns:
nothing