You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Tim Swast (Jira)" <ji...@apache.org> on 2021/09/03 21:15:00 UTC
[jira] [Commented] (ARROW-13897) [Python] TimestampScalar.as_py()
and DurationScalar.as_py() docs inaccurately describe return types
[ https://issues.apache.org/jira/browse/ARROW-13897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17409709#comment-17409709 ]
Tim Swast commented on ARROW-13897:
-----------------------------------
PR [https://github.com/apache/arrow/pull/11081] mailed
> [Python] TimestampScalar.as_py() and DurationScalar.as_py() docs inaccurately describe return types
> ---------------------------------------------------------------------------------------------------
>
> Key: ARROW-13897
> URL: https://issues.apache.org/jira/browse/ARROW-13897
> Project: Apache Arrow
> Issue Type: Task
> Reporter: Tim Swast
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> If I'm reading the code correctly, Pandas data types are only used if units are nanoseconds. Also, TimestampScalar returns a Python datetime.datetime, not datetime.timedelta.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)