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

Function simple_dicts_table

python/pyarrow/tests/test_flight.py:121–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119
120
121def simple_dicts_table():
122 dict_values = pa.array(["foo", "baz", "quux"], type=pa.utf8())
123 new_dict_values = pa.array(["foo", "baz", "quux", "new"], type=pa.utf8())
124 data = [
125 pa.chunked_array([
126 pa.DictionaryArray.from_arrays([1, 0, None], dict_values),
127 pa.DictionaryArray.from_arrays([2, 1], dict_values),
128 pa.DictionaryArray.from_arrays([0, 3], new_dict_values)
129 ])
130 ]
131 return pa.Table.from_arrays(data, names=['some_dicts'])
132
133
134def multiple_column_table():

Callers 4

test_flight_do_get_dictsFunction · 0.85
do_exchangeMethod · 0.85

Calls 2

chunked_arrayMethod · 0.80
arrayMethod · 0.45

Tested by

no test coverage detected