ak.array_equal#
Defined in awkward.operations.ak_array_equal on line 13.
- ak.array_equal(a1, a2, equal_nan=False, dtype_exact=True, same_content_types=True, check_parameters=True, check_regular=True, check_named_axis=True)#
- Parameters:
a1 – Array-like data (anything
ak.to_layout
recognizes).a2 – Array-like data (anything
ak.to_layout
recognizes).equal_nan – bool (default=False) Whether to count NaN values as equal to each other.
dtype_exact – bool (default=True) whether the dtypes must be exactly the same, or just the same family.
same_content_types – bool (default=True) Whether to require all content classes to match
check_parameters – bool (default=True) whether to compare parameters.
check_regular – bool (default=True) whether to consider ragged and regular dimensions as unequal.
check_named_axis – bool (default=True) whether to consider named axes as unequal.
True if two arrays have the same shape and elements, False otherwise.
TypeTracer arrays are not supported, as there is very little information to be compared.