MCPcopy Create free account
hub / github.com/dask/dask / assert_array_index_eq

Function assert_array_index_eq

dask/dataframe/tests/test_categorical.py:400–406  ·  view source on GitHub ↗

left and right are equal, treating index and array as equivalent

(left, right, check_divisions=False)

Source from the content-addressed store, hash-verified

398
399
400def assert_array_index_eq(left, right, check_divisions=False):
401 """left and right are equal, treating index and array as equivalent"""
402 assert_eq(
403 left,
404 pd.Index(right) if isinstance(right, np.ndarray) else right,
405 check_divisions=check_divisions,
406 )
407
408
409def test_return_type_known_categories():

Callers 1

Calls 1

assert_eqFunction · 0.90

Tested by

no test coverage detected