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

Wes McKinney resolved ARROW-5238.
---------------------------------
    Resolution: Fixed

Issue resolved by pull request 4245
[https://github.com/apache/arrow/pull/4245]

> [Python] Improve usability of pyarrow.dictionary function
> ---------------------------------------------------------
>
>                 Key: ARROW-5238
>                 URL: https://issues.apache.org/jira/browse/ARROW-5238
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Python
>            Reporter: Wes McKinney
>            Assignee: Joris Van den Bossche
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.14.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> {code}
> >>> pa.dictionary('int8', ['a', 'b', 'c', 'd'])
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> TypeError: Argument 'index_type' has incorrect type (expected 
> pyarrow.lib.DataType, got str)
> >>> pa.dictionary(pa.int8(), ['a', 'b', 'c', 'd'])
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> TypeError: Argument 'dict_values' has incorrect type (expected 
> pyarrow.lib.Array, got list)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to