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

Krisztian Szucs updated ARROW-9999:
-----------------------------------
    Description: 
{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}

  was:
{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}




> [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
>            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}



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

Reply via email to