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

Function test_table_repr_to_string_ellipsis

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

Source from the content-addressed store, hash-verified

2747
2748
2749def test_table_repr_to_string_ellipsis():
2750 # Schema passed explicitly
2751 schema = pa.schema([pa.field('c0', pa.int16(),
2752 metadata={'key': 'value'}),
2753 pa.field('c1', pa.int32())],
2754 metadata={b'foo': b'bar'})
2755
2756 tab = pa.table([pa.array([1, 2, 3, 4]*10, type='int16'),
2757 pa.array([10, 20, 30, 40]*10, type='int32')],
2758 schema=schema)
2759 assert str(tab) == """pyarrow.Table
2760c0: int16
2761c1: int32
2762----
2763c0: [[1,2,3,4,1,...,4,1,2,3,4]]
2764c1: [[10,20,30,40,10,...,40,10,20,30,40]]"""
2765
2766
2767def test_record_batch_repr_to_string():

Callers

nothing calls this directly

Calls 3

schemaMethod · 0.45
fieldMethod · 0.45
arrayMethod · 0.45

Tested by

no test coverage detected