You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Florian Jetter (JIRA)" <ji...@apache.org> on 2018/04/10 14:38:00 UTC
[jira] [Created] (ARROW-2443) [Python] Conversion from pandas of
empty categorical fails with ArrowInvalid
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)