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

Function test_schema_repr_with_dictionaries

python/pyarrow/tests/test_schema.py:616–628  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

614
615
616def test_schema_repr_with_dictionaries():
617 fields = [
618 pa.field('one', pa.dictionary(pa.int16(), pa.string())),
619 pa.field('two', pa.int32())
620 ]
621 sch = pa.schema(fields)
622
623 expected = (
624 """\
625one: dictionary<values=string, indices=int16, ordered=0>
626two: int32""")
627
628 assert repr(sch) == expected
629
630
631def test_type_schema_pickling(pickle_module):

Callers

nothing calls this directly

Calls 4

fieldMethod · 0.45
dictionaryMethod · 0.45
stringMethod · 0.45
schemaMethod · 0.45

Tested by

no test coverage detected