Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Timestamp.strptime %z not supported #25016
Code Sample, a copy-pastable example if possible
fmt = '%Y%m%d-%H%M%S-%f%z' ts = '20190129-235348-183747+0000' pd.Timestamp.strptime(ts, fmt)
Traceback (most recent call last): File "/scratch.py", line 6, in <module> pd.Timestamp.strptime(ts, fmt) File "/python/lib/python3.6/_strptime.py", line 576, in _strptime_datetime return cls(*args) File "pandas/_libs/tslibs/timestamps.pyx", line 748, in pandas._libs.tslibs.timestamps.Timestamp.__new__ TypeError: an integer is required
Timestamp.strptime does not support %z. Issue was fixed with
The same as
Timestamp('2019-01-29 23:53:48.183747+0000', tz='UTC')
Thanks for the report.
The fix is luckily straightforward.
However, we need to make an API change in the