You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Uwe L. Korn (JIRA)" <ji...@apache.org> on 2016/11/15 21:10:59 UTC

[jira] [Updated] (ARROW-377) Python: Add support for conversion of Pandas.Categorical

     [ https://issues.apache.org/jira/browse/ARROW-377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Uwe L. Korn updated ARROW-377:
------------------------------
    Priority: Minor  (was: Major)

> Python: Add support for conversion of Pandas.Categorical
> --------------------------------------------------------
>
>                 Key: ARROW-377
>                 URL: https://issues.apache.org/jira/browse/ARROW-377
>             Project: Apache Arrow
>          Issue Type: New Feature
>            Reporter: Uwe L. Korn
>            Priority: Minor
>              Labels: newbie
>
> At the moment conversion from {{pandas.Categorical}} columns fails with {{ArrowException: Invalid: only handle 1-dimensional arrays}}. As a better alternative, we should provide one of the following solutions:
>  * Convert the categorical column to a string (Pandas type {{object}}) column, then use the conversion routines for strings. Add some metadata to the Arrow column that it was initially a Pandas string column so that in the case of a roundtrip, it will be a categorical column again.
>  * Implement the conversion of the column to a dictionary-encoded Arrow column. This is the preferred solution but may be more complicated to implement as certain requirements have not yet been implemented.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)