You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "danepitkin (via GitHub)" <gi...@apache.org> on 2023/06/23 21:18:37 UTC

[GitHub] [arrow] danepitkin commented on issue #36277: [Python] Can't convert datetime.date to pa.timestamp in pa.array

danepitkin commented on issue #36277:
URL: https://github.com/apache/arrow/issues/36277#issuecomment-1604984716

   datetime.datetime does work though:
   
   ```
   >>> pa.array([datetime.datetime(2000, 1, 1)], type=pa.timestamp('s'))
   <pyarrow.lib.TimestampArray object at 0x13999bee0>
   [
     2000-01-01 00:00:00
   ]
   ```


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

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