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

Wes McKinney commented on ARROW-488:
------------------------------------

[~tebeka] the pandas behavior is the motivation for this JIRA

Because pandas implicitly converts from integer to float when introducing null 
values, the task in this JIRA is to convert (safely) from floating point with 
NaNs to Arrow integer types with proper nulls

{code}
In [2]: pyarrow.Array.from_list([1, 2, None, 4, None])
Out[2]: 
<pyarrow.array.Int64Array object at 0x7fb24fe97bd8>
[
  1,
  2,
  NA,
  4,
  NA
]
{code}

> [Python] Implement conversion between integer coded as floating points with 
> NaN to an Arrow integer type
> --------------------------------------------------------------------------------------------------------
>
>                 Key: ARROW-488
>                 URL: https://issues.apache.org/jira/browse/ARROW-488
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: Python
>            Reporter: Wes McKinney
>
> For example: if pandas has casted integer data to float, this would enable 
> the integer data to be recovered (so long as the values fall in the ~2^53 
> floating point range for exact integer representation)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to