MCPcopy Create free account
hub / github.com/apache/arrow / compare_tables_ignoring_order

Function compare_tables_ignoring_order

python/pyarrow/tests/test_dataset.py:4447–4450  ·  view source on GitHub ↗
(t1, t2)

Source from the content-addressed store, hash-verified

4445 [pa.field('c', pa.int64())]), flavor='hive')
4446
4447 def compare_tables_ignoring_order(t1, t2):
4448 df1 = t1.to_pandas().sort_values('b').reset_index(drop=True)
4449 df2 = t2.to_pandas().sort_values('b').reset_index(drop=True)
4450 assert df1.equals(df2)
4451
4452 # First write is ok
4453 ds.write_dataset(table, directory, partitioning=partitioning, format='ipc')

Callers 1

Calls 1

equalsMethod · 0.80

Tested by

no test coverage detected