cudf.testing.testing.assert_eq#
- cudf.testing.testing.assert_eq(left, right, **kwargs)[source]#
Assert that two cudf-like things are equivalent
- Parameters:
- left
Object to compare
- right
Object to compare
- kwargs
Keyword arguments to control behaviour of comparisons. See
assert_frame_equal(),assert_series_equal(), andassert_index_equal().
- Raises:
- AssertionError
If the two objects do not compare equal.
Notes
This equality test works for pandas/cudf dataframes/series/indexes/scalars in the same way, and so makes it easier to perform parametrized testing without switching between assert_frame_equal/assert_series_equal/… functions.