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

ASF GitHub Bot commented on ARROW-2443:
---------------------------------------

xhochy opened a new pull request #1906: ARROW-2443: [Python] Allow creation of 
empty Dictionary indices
URL: https://github.com/apache/arrow/pull/1906
 
 
   Empty dictionaries are a valid use case if you have absolutely no data in an 
array. This was working pre-0.9.0 releases of Arrow.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> [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
>            Assignee: Uwe L. 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
(v7.6.3#76005)

Reply via email to