-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Description
>>> import pyarrow.compute as pc
>>> pc.strptime('13:13:30', format='%H:%M:%S', unit='s')
<pyarrow.TimestampScalar: datetime.datetime(1899, 12, 31, 13, 13, 30)>
>>> pc.strptime('13:13:30.255', format='%H:%M:%S.%f', unit='ms')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/dist-packages/pyarrow/compute.py", line 140, in wrapper
return func.call([arg], options, memory_pool)
File "pyarrow/_compute.pyx", line 275, in pyarrow._compute.Function.call
File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Failed to parse string 13:13:30.255Reporter: Taras Kuzyo / @TarasKuzyo
Watchers: Rok Mihevc / @rok
Related issues:
- [C++] Strptime issues umbrella (is a child of)
- [C++] Support for fractional seconds in strptime() (is duplicated by)
Note: This issue was originally created as ARROW-10430. Please see the migration documentation for further details.