You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above code returns the error message NonExistentTimeError: 2017-03-12 02:00:00; however, the input series only contains timestamps up to 2017-03-12 01:45:00. Does anyone understand why this error is occurring? If so, how can I address the problem?
The text was updated successfully, but these errors were encountered:
Had a quick look into this and can reproduce consistently. Exception is thrown by pandas/_libs/tslibs/conversion.pyx#tz_localize_to_utc
I isolated the values from the example above, and found some others that also result in an exception like this. Time zone and last_dst values don't seem to make a difference.
frompandas._libs.libimportTimestampfresult=1489276800000000000lresult=1489284000000000000last_tzinfo='US/Pacific'last_dst=False# this is fineTimestamp(fresult).tz_localize(last_tzinfo, ambiguous=last_dst)
# this is notTimestamp(lresult).tz_localize(last_tzinfo, ambiguous=last_dst)
# other problematic examplesTimestamp(1489285000000000000).tz_localize(last_tzinfo, ambiguous=last_dst)
Timestamp(1489286000000000000).tz_localize(last_tzinfo, ambiguous=last_dst)
Code Sample
Some Version Information:
Python: 3.6.2
pandas: 0.22.0
pytz: 2017.3
numpy: 1.13.0
Problem description
The above code returns the error message NonExistentTimeError: 2017-03-12 02:00:00; however, the input series only contains timestamps up to 2017-03-12 01:45:00. Does anyone understand why this error is occurring? If so, how can I address the problem?
The text was updated successfully, but these errors were encountered: