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

Function simple_dicts_table

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

Source from the content-addressed store, hash-verified

117
118
119def simple_dicts_table():
120 dict_values = pa.array(["foo", "baz", "quux"], type=pa.utf8())
121 new_dict_values = pa.array(["foo", "baz", "quux", "new"], type=pa.utf8())
122 data = [
123 pa.chunked_array([
124 pa.DictionaryArray.from_arrays([1, 0, None], dict_values),
125 pa.DictionaryArray.from_arrays([2, 1], dict_values),
126 pa.DictionaryArray.from_arrays([0, 3], new_dict_values)
127 ])
128 ]
129 return pa.Table.from_arrays(data, names=['some_dicts'])
130
131
132def 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