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

Tim Swast commented on ARROW-13806:
-----------------------------------

Regarding "Python" conversion, we decided in the Python BigQuery client that 
dateutil is widely used (including by pandas) to go with relativedelta for a 
similar conversion from this data type to Python object. 
[https://github.com/googleapis/python-bigquery/pull/840]

The package appears to be widely used and from what I can tell from 
[https://github.com/dateutil/dateutil] no additional transitive dependencies to 
worry about.

That said, a namedtuple or dict where the names match the arguments to 
relativedelta (months, days, microseconds) would be pretty easy to convert to a 
relativedelta if not.

> [Python] Add conversion to/from Pandas/Python for Month, Day Nano Interval 
> Type
> -------------------------------------------------------------------------------
>
>                 Key: ARROW-13806
>                 URL: https://issues.apache.org/jira/browse/ARROW-13806
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: Python
>            Reporter: Micah Kornfield
>            Assignee: Micah Kornfield
>            Priority: Major
>
> [https://github.com/apache/arrow/pull/10177] has been merged we should 
> support conversion to and from this type for standard python surface areas.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to