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

Function assert_numpy_array_equal

dask/_pandas_compat.py:42–49  ·  view source on GitHub ↗
(left, right)

Source from the content-addressed store, hash-verified

40
41
42def assert_numpy_array_equal(left, right):
43 left_na = pd.isna(left)
44 right_na = pd.isna(right)
45 np.testing.assert_array_equal(left_na, right_na)
46
47 left_valid = left[~left_na]
48 right_valid = right[~right_na]
49 np.testing.assert_array_equal(left_valid, right_valid)
50
51
52def makeDataFrame():

Callers

nothing calls this directly

Calls 1

isnaMethod · 0.45

Tested by

no test coverage detected