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

Function test_table_from_arrays_invalid_names

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

Source from the content-addressed store, hash-verified

1613
1614
1615def test_table_from_arrays_invalid_names():
1616 data = [
1617 pa.array(range(5)),
1618 pa.array([-10, -5, 0, 5, 10])
1619 ]
1620 with pytest.raises(ValueError):
1621 pa.Table.from_arrays(data, names=['a', 'b', 'c'])
1622
1623 with pytest.raises(ValueError):
1624 pa.Table.from_arrays(data, names=['a'])
1625
1626
1627def test_table_from_lists():

Callers

nothing calls this directly

Calls 1

arrayMethod · 0.45

Tested by

no test coverage detected