hipdf.testing.testing.assert_eq

Contents

hipdf.testing.testing.assert_eq#

21 min read time

Applies to Linux

hipdf.testing.testing.assert_eq(left, right, **kwargs)#

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(), and assert_index_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.

Raises#

AssertionError

If the two objects do not compare equal.