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

Function test_table_remove_column_empty

python/pyarrow/tests/test_table.py:1844–1857  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

1842 ]
1843)
1844def test_table_remove_column_empty(cls):
1845 # ARROW-1865
1846 data = [
1847 pa.array(range(5)),
1848 ]
1849 table = cls.from_arrays(data, names=['a'])
1850
1851 t2 = table.remove_column(0)
1852 t2.validate()
1853 assert len(t2) == len(table)
1854
1855 t3 = t2.add_column(0, table.field(0), table[0])
1856 t3.validate()
1857 assert t3.equals(table)
1858
1859
1860def test_empty_table_with_names():

Callers

nothing calls this directly

Calls 6

lenFunction · 0.85
equalsMethod · 0.80
arrayMethod · 0.45
remove_columnMethod · 0.45
validateMethod · 0.45
fieldMethod · 0.45

Tested by

no test coverage detected