[ 
https://issues.apache.org/jira/browse/ARROW-2443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17659470#comment-17659470
 ] 

Rok Mihevc commented on ARROW-2443:
-----------------------------------

This issue has been migrated to [issue 
#18577|https://github.com/apache/arrow/issues/18577] on GitHub. Please see the 
[migration documentation|https://github.com/apache/arrow/issues/14542] for 
further details.

> [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
>          Components: Python
>    Affects Versions: 0.9.0
>            Reporter: Florian Jetter
>            Assignee: Uwe Korn
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 0.10.0
>
>
> 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
(v8.20.10#820010)

Reply via email to