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

Function test_map_from_dict

python/pyarrow/tests/test_array.py:1263–1270  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1261
1262
1263def test_map_from_dict():
1264 # ARROW-17832
1265 tup_arr = pa.array([[('a', 1), ('b', 2)], [('c', 3)]],
1266 pa.map_(pa.string(), pa.int64()))
1267 dict_arr = pa.array([{'a': 1, 'b': 2}, {'c': 3}],
1268 pa.map_(pa.string(), pa.int64()))
1269
1270 assert tup_arr.equals(dict_arr)
1271
1272
1273@pytest.mark.numpy

Callers

nothing calls this directly

Calls 3

equalsMethod · 0.80
arrayMethod · 0.45
stringMethod · 0.45

Tested by

no test coverage detected