ianmcook commented on issue #41684: URL: https://github.com/apache/arrow/issues/41684#issuecomment-2125637474
Relatedly: I noticed that `DictionaryArray.from_arrays()` takes a `mask` argument, but it is [not implemented](https://github.com/apache/arrow/blob/9ba9253e8527a7f3e2c6e47e631e278b8ca84e53/python/pyarrow/array.pxi#L3692-L3694). However, this is not so important, because null values in the dictionary indices are preserved when you call `DictionaryArray.from_arrays`: ```py import pyarrow as pa import pyarrow.compute as pc d = pc.dictionary_encode(pa.array([1,1,2,None,3])) pc.dictionary_decode(pa.DictionaryArray.from_arrays(d.indices, d.dictionary)) ## <pyarrow.lib.Int64Array object at 0x12b38b0a0> ## [ ## 1, ## 1, ## 2, ## null, ## 3 ## ] ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
