rohanjain101 opened a new issue, #40170:
URL: https://github.com/apache/arrow/issues/40170
### Describe the bug, including details regarding any error messages,
version, and platform.
>>> pa.compute.strftime(pd.Timestamp.utcnow(), "%Y-%m-%d %z")
<pyarrow.StringScalar: '2024-02-21 +0000'>
>>> pa.compute.strptime('2024-02-21 +0000', "%Y-%m-%d %z", "ns")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\pd_dev_1208\Lib\site-packages\pyarrow\compute.py", line 263, in
wrapper
return func.call(args, options, memory_pool)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pyarrow\_compute.pyx", line 385, in pyarrow._compute.Function.call
File "pyarrow\error.pxi", line 154, in
pyarrow.lib.pyarrow_internal_check_status
File "pyarrow\error.pxi", line 91, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Failed to parse string: '2024-02-21 +0000' as a
scalar of type timestamp[ns]
>>>
### Component(s)
C++, 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]