Wes McKinney created ARROW-5238:
-----------------------------------
Summary: [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
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)