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

Function test_table_remove_column

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

Source from the content-addressed store, hash-verified

1821 ]
1822)
1823def test_table_remove_column(cls):
1824 data = [
1825 pa.array(range(5)),
1826 pa.array([-10, -5, 0, 5, 10]),
1827 pa.array(range(5, 10))
1828 ]
1829 table = cls.from_arrays(data, names=('a', 'b', 'c'))
1830
1831 t2 = table.remove_column(0)
1832 t2.validate()
1833 expected = cls.from_arrays(data[1:], names=('b', 'c'))
1834 assert t2.equals(expected)
1835
1836
1837@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 4

equalsMethod · 0.80
arrayMethod · 0.45
remove_columnMethod · 0.45
validateMethod · 0.45

Tested by

no test coverage detected