cudf.testing.testing.assert_column_equal(left, right, check_dtype=True, check_column_type='equiv', check_less_precise=False, check_exact=False, check_datetimelike_compat=False, check_categorical=True, check_category_order=True, rtol=1e-05, atol=1e-08, obj='ColumnBase')#

Check that left and right columns are equal

This function is intended to compare two columns and output any differences. Additional parameters allow varying the strictness of the equality checks performed.


left Column to compare


right Column to compare

check_dtypebool, default True

Whether to check the Column dtype is identical.

check_column_typebool or {‘equiv’}, default ‘equiv’

Whether to check the columns class, dtype and inferred_type are identical. Currently it is idle, and similar to pandas.

check_less_precisebool or int, default False

Not yet supported

check_exactbool, default False

Whether to compare number exactly.

check_datetime_like_compatbool, default False

Compare datetime-like which is comparable ignoring dtype.

check_categoricalbool, default True

Whether to compare internal Categorical exactly.

check_category_orderbool, default True

Whether to compare category order of internal Categoricals

rtolfloat, default 1e-5

Relative tolerance. Only used when check_exact is False.

atolfloat, default 1e-8

Absolute tolerance. Only used when check_exact is False.

objstr, default ‘ColumnBase’

Specify object name being compared, internally used to show appropriate assertion message.