[ https://issues.apache.org/jira/browse/ARROW-5238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rok Mihevc updated ARROW-5238: ------------------------------ External issue URL: https://github.com/apache/arrow/issues/21710 > [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: 0.5h > 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 (v8.20.10#820010)