I am trying to convert to datetime in pandas dataframe, where name of timezone is included. I have tried the following but it yields an error:
d = {'col1': ['Sun Dec 31 00:00:00 EAT 1899', 'Mon Mar 02 00:00:00 EAT 2020']}
x = pd.DataFrame(data=d)
pd.to_datetime(x['col1'], format='%a %b %d %H:%M:%S %Z %Y', errors='coerce')
0 NaT
1 NaT
Name: col1, dtype: datetime64[ns]
Is there any way to convert to datetime this way? If not, how to ignore the timezone name?