I have a datetime column EST
EST
2017-01-01 19:00:00-05:00
2017-01-01 19:01:00-05:00
2017-01-01 19:02:00-05:00
2017-01-01 19:03:00-05:00
2017-01-01 19:05:00-05:00
2017-01-01 19:06:00-05:00
....
2017-12-31 23:01:00-05:00
Here you can see that there is trailing -05:00 on every time. This trailing -05:00 was added when I converted from GMT to EST.
How do I remove -05:00?
The reason is because when I do:
df['EST'] = pd.DatetimeIndex(df['EST']')
I get this error:
TypeError: [datetime.datetime(2017, 12, 31, 19, 0, tzinfo=tzoffset(None, -18000))
Could you please help me solve this?