[ 
https://issues.apache.org/jira/browse/ARROW-9999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Neal Richardson updated ARROW-9999:
-----------------------------------
    Component/s: Python

> [Python] Support constructing dictionary array directly through pa.array()
> --------------------------------------------------------------------------
>
>                 Key: ARROW-9999
>                 URL: https://issues.apache.org/jira/browse/ARROW-9999
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: Python
>            Reporter: Krisztian Szucs
>            Assignee: Krisztian Szucs
>            Priority: Major
>             Fix For: 2.0.0
>
>
> {code:python}
> pa.array(["some", "string"], type=pa.dictionary(pa.int8(), pa.string)))
> {code}
> raises
> {code}
> ArrowNotImplementedError: Sequence converter for type 
> dictionary<values=string, indices=int8, ordered=0> not implemented
> {code}
> It would be a much more comfortable way than
> {code:python}
> pa.DictionaryArray.from_arrays(indices, dictionary)
> {code}
> And possibly more efficient as well thanks to the adaptive dictionary 
> builders.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to