You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (JIRA)" <ji...@apache.org> on 2017/03/29 20:57:41 UTC

[jira] [Updated] (ARROW-736) [Python] Mixed-type object DataFrame columns should not silently coerce to an Arrow type by default

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

Wes McKinney updated ARROW-736:
-------------------------------
    Fix Version/s: 0.3.0

> [Python] Mixed-type object DataFrame columns should not silently coerce to an Arrow type by default
> ---------------------------------------------------------------------------------------------------
>
>                 Key: ARROW-736
>                 URL: https://issues.apache.org/jira/browse/ARROW-736
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>            Reporter: Wes McKinney
>             Fix For: 0.3.0
>
>
> {code}
> In [4]: df = pd.DataFrame({'a': ['a', 1, 2.0]})
> In [5]: df
> Out[5]: 
>    a
> 0  a
> 1  1
> 2  2
> In [6]: pt = pa.Table.from_pandas(df)
> In [7]: pt.to_pandas()
> Out[7]: 
>       a
> 0     a
> 1  None
> 2  None
> {code}



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