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

Function test_array_pickle_dictionary

python/pyarrow/tests/test_array.py:2473–2479  ·  view source on GitHub ↗
(pickle_module)

Source from the content-addressed store, hash-verified

2471
2472
2473def test_array_pickle_dictionary(pickle_module):
2474 # not included in the above as dictionary array cannot be created with
2475 # the pa.array function
2476 array = pa.DictionaryArray.from_arrays([0, 1, 2, 0, 1], ['a', 'b', 'c'])
2477 for proto in range(0, pickle_module.HIGHEST_PROTOCOL + 1):
2478 result = pickle_module.loads(pickle_module.dumps(array, proto))
2479 assert array.equals(result)
2480
2481
2482@pytest.mark.numpy

Callers

nothing calls this directly

Calls 3

loadsMethod · 0.80
dumpsMethod · 0.80
equalsMethod · 0.80

Tested by

no test coverage detected