You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Krisztian Szucs (Jira)" <ji...@apache.org> on 2020/09/28 09:23:00 UTC
[jira] [Resolved] (ARROW-9999) [Python] Support constructing
dictionary array directly through pa.array()
[ https://issues.apache.org/jira/browse/ARROW-9999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Krisztian Szucs resolved ARROW-9999.
------------------------------------
Resolution: Fixed
> [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
> Reporter: Krisztian Szucs
> Assignee: Krisztian Szucs
> Priority: Major
>
> {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)