jorisvandenbossche commented on issue #39539:
URL: https://github.com/apache/arrow/issues/39539#issuecomment-1884751680

   > Date and Duration data type classes are added to the staging branch of the 
protocol: 
https://github.com/data-apis/dataframe-api/blob/c5f08352e0a1d25387fe1737ffe9cccb36f554f7/spec/API_specification/dataframe_api/dtypes.py#L50
   
   That's for the standard API, though, not for the interchange protocol (I was 
confused as well, and so wrote a wrong comment on the PR adding it asking for 
clarification ;) -> https://github.com/data-apis/dataframe-api/pull/197)
   
   > Yes, that was my idea. Similar to what polars does: 
https://github.com/pola-rs/polars/blob/2b43fc1ac1af84ed118ff3f8840d328a12c35510/py-polars/polars/interchange/utils.py#L35-L54
   
   Personally I think it would be better if this was first clarified or added 
in the interchange protocol. While for date it does make some sense (as you 
could just see it as a different resolution of datetime), duration is really 
different. And for example the pandas implementation also wouldn't support 
consuming duration. And pyarrow only supports consuming datetime as timestamp, 
not even date. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to