I have a pandas DataFrame with a colum containing string timestamps in the form:
31 Jan 2020 17:29:37 CET
09 Apr 2021 15:34:53 CEST
Converting the column to timestamps returns a warning:
df['timestamp'] = pd.to_datetime(df["timestamp"])
c:\Users\user\Miniconda3\lib\site-packages\dateutil\parser\_parser.py:1213: UnknownTimezoneWarning: tzname CET identified but not understood. Pass `tzinfos` argument in order to correctly return a timezone-aware datetime. In a future version, this will raise an exception.
warnings.warn("tzname {tzname} identified but not understood. "
c:\Users\user\Miniconda3\lib\site-packages\dateutil\parser\_parser.py:1213: UnknownTimezoneWarning: tzname CEST identified but not understood. Pass `tzinfos` argument in order to correctly return a timezone-aware datetime. In a future version, this will raise an exception.
warnings.warn("tzname {tzname} identified but not understood. "
I've seen lots of discussions about this warning, but couldn't find a solution in the context of pandas' to_datetime()
method. Can anyone help? It's critical that the timestamps are normaized accurately as I then want to sort my dataframe with this column.
Thanks!