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

Joris Van den Bossche commented on ARROW-5379:
----------------------------------------------

So the pandas -> arrow/feather conversion already works with pandas master and 
the latest Arrow release (0.15).

If you want to use this feature without relying on pandas master, you can use 
this monkeypatch (it's basically what is added in the development version of 
pandas master):

{code}
import pandas as pd
import pyarrow

pd.arrays.IntegerArray.__arrow_array__ = lambda self, type: 
pyarrow.array(self._data, mask=self._mask, type=type)
{code}

> [Python] support pandas' nullable Integer type in from_pandas
> -------------------------------------------------------------
>
>                 Key: ARROW-5379
>                 URL: https://issues.apache.org/jira/browse/ARROW-5379
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Python
>            Reporter: Joris Van den Bossche
>            Priority: Major
>
> From https://github.com/apache/arrow/issues/4168. We should add support for 
> pandas' nullable Integer extension dtypes, as those could map nicely to 
> arrows integer types. 
> Ideally this happens in a generic way though, and not specific for this 
> extension type, which is discussed in ARROW-5271



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to