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

Function test_table_column_with_duplicates

python/pyarrow/tests/test_table.py:1642–1650  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1640
1641
1642def test_table_column_with_duplicates():
1643 # ARROW-8209
1644 table = pa.table([pa.array([1, 2, 3]),
1645 pa.array([4, 5, 6]),
1646 pa.array([7, 8, 9])], names=['a', 'b', 'a'])
1647
1648 with pytest.raises(KeyError,
1649 match='Field "a" exists 2 times in schema'):
1650 table.column('a')
1651
1652
1653@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

arrayMethod · 0.45
columnMethod · 0.45

Tested by

no test coverage detected