You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "wirable23 (via GitHub)" <gi...@apache.org> on 2023/06/12 03:59:53 UTC

[GitHub] [arrow] wirable23 opened a new issue, #36035: Preserve unit from Pandas timestamp when creating arrow scalar

wirable23 opened a new issue, #36035:
URL: https://github.com/apache/arrow/issues/36035

   ### Describe the enhancement requested
   
   ```
   >>> ts = pd.Timestamp("2020-07-28 21:10:53.114429867")
   >>> ts.unit
   'ns'
   >>> pa_s = pa.scalar(ts)
   >>> pa_s.type
   TimestampType(timestamp[us])
   >>>
   ```
   
   Since the pandas unit was nanoseconds, would be nice if that were preserved in the inferred type, without having to specify ns explicitly.
   
   ### Component(s)
   
   Python


-- 
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: issues-unsubscribe@arrow.apache.org.apache.org

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