You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Uwe L. Korn (JIRA)" <ji...@apache.org> on 2018/06/14 12:22:00 UTC
[jira] [Resolved] (ARROW-2554) pa.array type inference bug when
using NS-timestamp
[ https://issues.apache.org/jira/browse/ARROW-2554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Uwe L. Korn resolved ARROW-2554.
--------------------------------
Resolution: Fixed
Issue resolved by pull request 2118
[https://github.com/apache/arrow/pull/2118]
> 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 10m
> 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
(v7.6.3#76005)