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

   ### Describe the enhancement requested
   
   Pyarrow `timestamp(unit).to_pandas_dtype()` and 
`duration(unit).to_pandas_dtype` are currently returning `dtype('<M8[ns]')` 
with nanosecond units regardless of the pyarrow units. Pandas has recently 
added support for non-nanosecond units so I believe pyarrow can now preserve 
the units here.
   
   ```
   >>> import pyarrow as pa
   
   >>> pa.timestamp("us").to_pandas_dtype()
   dtype('<M8[ns]')
   
   >>> pa.duration("ms").to_pandas_dtype()
   dtype('<m8[ns]')
   ```
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to