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

Rok Mihevc commented on ARROW-2554:
-----------------------------------

This issue has been migrated to [issue 
#18896|https://github.com/apache/arrow/issues/18896] on GitHub. Please see the 
[migration documentation|https://github.com/apache/arrow/issues/14542] for 
further details.

> pa.array type inference bug when using NS-timestamp
> ---------------------------------------------------
>
>                 Key: ARROW-2554
>                 URL: https://issues.apache.org/jira/browse/ARROW-2554
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>    Affects Versions: 0.9.0
>            Reporter: Marco Neumann
>            Assignee: Marco Neumann
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.10.0
>
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> The following fails:
> {noformat}
> import pandas as pd
> import pyarrow as pa
> pa.array([pd.Timestamp('now').to_datetime64()])
> {noformat}
> with {{ArrowNotImplementedError: Cannot convert NumPy datetime64 objects with 
> differing unit}}, but when you provide the correct type information directly, 
> it works:
> {noformat}
> import pandas as pd
> import pyarrow as pa
> pa.array([pd.Timestamp('now').to_datetime64()], type=pa.timestamp('ns'))
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to