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

Function test_dictionary_decode

python/pyarrow/tests/test_compute.py:2219–2228  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2217
2218
2219def test_dictionary_decode():
2220 array = pa.array(["a", "a", "b", "c", "b"])
2221 dictionary_array = array.dictionary_encode()
2222 dictionary_array_decode = pc.dictionary_decode(dictionary_array)
2223
2224 assert array != dictionary_array
2225
2226 assert array == dictionary_array_decode
2227 assert array == pc.dictionary_decode(array)
2228 assert pc.dictionary_encode(dictionary_array) == dictionary_array
2229
2230
2231def test_cast():

Callers

nothing calls this directly

Calls 1

arrayMethod · 0.45

Tested by

no test coverage detected