Florian Jetter created ARROW-2443:
-------------------------------------
Summary: [Python] Conversion from pandas of empty categorical
fails with ArrowInvalid
Key: ARROW-2443
URL: https://issues.apache.org/jira/browse/ARROW-2443
Project: Apache Arrow
Issue Type: Bug
Affects Versions: 0.9.0
Reporter: Florian Jetter
The conversion of an empty pandas categorical raises an exception. Before
version `0.9.0` this was possible
{code:java}
import pandas as pd
import pyarrow as pa
pa.Table.from_pandas(pd.DataFrame({'cat': pd.Categorical([])})){code}
raises:
{{ArrowInvalid: Dictionary indices must have non-zero length}}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)