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:1703–1711  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1701
1702
1703def test_table_column_with_duplicates():
1704 # ARROW-8209
1705 table = pa.table([pa.array([1, 2, 3]),
1706 pa.array([4, 5, 6]),
1707 pa.array([7, 8, 9])], names=['a', 'b', 'a'])
1708
1709 with pytest.raises(KeyError,
1710 match='Field "a" exists 2 times in schema'):
1711 table.column('a')
1712
1713
1714@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

arrayMethod · 0.45
columnMethod · 0.45

Tested by

no test coverage detected