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

Function test_dictionary_encode_zero_length

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

Source from the content-addressed store, hash-verified

2240
2241
2242def test_dictionary_encode_zero_length():
2243 # User-facing experience of ARROW-7008
2244 arr = pa.array([], type=pa.string())
2245 encoded = arr.dictionary_encode()
2246 assert len(encoded.dictionary) == 0
2247 encoded.validate(full=True)
2248
2249
2250def test_dictionary_decode():

Callers

nothing calls this directly

Calls 4

lenFunction · 0.85
arrayMethod · 0.45
stringMethod · 0.45
validateMethod · 0.45

Tested by

no test coverage detected