I have a Panda df with a UTC column (not a timeseries index, a UTC Date field). The data is displayed in the df as:
2017-11-13 05:00:00
I need to create a new column (leaving the UTC column intact), but with localtime and have it displayed as:
2017-11-13 00:00:00
(assuming US/Eastern)
I tried:
df['DATE_TIME_UTC'].dt.tz_localize('US/Eastern')
but this displays:
2017-11-13 05:00:00-5:00
and when pushed to the DB, it shows the UTC time again. Please advise how store the datetime in the new field as localtime.
Thanks