You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Jim Crist (JIRA)" <ji...@apache.org> on 2019/01/15 21:32:00 UTC

[jira] [Commented] (ARROW-3910) [Python] Set date_as_object to True in *.to_pandas as default after deduplicating logic implemented

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

Jim Crist commented on ARROW-3910:
----------------------------------

Should `to_pandas_dtype()` return object dtype for date types as well?

```
In [1]: import pyarrow as pa

In [2]: pa.date32().to_pandas_dtype()
Out[2]: dtype('<M8[ns]')
```

This is what dask uses to infer pandas dtypes from an arrow schema.

> [Python] Set date_as_object to True in *.to_pandas as default after deduplicating logic implemented
> ---------------------------------------------------------------------------------------------------
>
>                 Key: ARROW-3910
>                 URL: https://issues.apache.org/jira/browse/ARROW-3910
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Python
>            Reporter: Wes McKinney
>            Assignee: Wes McKinney
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.12.0
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> See discussion in ARROW-3899



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)