[
https://issues.apache.org/jira/browse/ARROW-5238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joris Van den Bossche reassigned ARROW-5238:
--------------------------------------------
Assignee: Joris Van den Bossche
> [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
> Fix For: 0.14.0
>
>
> {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)