MCPcopy
hub / github.com/pandas-dev/pandas / assert_block_equal

Function assert_block_equal

pandas/tests/internals/test_internals.py:65–70  ·  view source on GitHub ↗
(left, right)

Source from the content-addressed store, hash-verified

63
64
65def assert_block_equal(left, right):
66 tm.assert_numpy_array_equal(left.values, right.values)
67 assert left.dtype == right.dtype
68 assert isinstance(left.mgr_locs, BlockPlacement)
69 assert isinstance(right.mgr_locs, BlockPlacement)
70 tm.assert_numpy_array_equal(left.mgr_locs.as_array, right.mgr_locs.as_array)
71
72
73def get_numeric_mat(shape):

Callers 3

test_pickleMethod · 0.85
test_copyMethod · 0.85
test_splitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected