I have a column such as
time
1508089361
1508065388
1508011482
I want to convert this to a local timestamp setting the timezone for a particular region, so I use the code below:
df['time'] = pd.to_datetime(df['time'], unit='s').dt.tz_localize('UTC').dt.tz_convert('Europe/Berlin')
It returns me a column with values as below:
time
2017-10-04 16:17:34+02:00
2017-10-04 14:17:34+02:00
2017-10-04 08:17:34+02:00
IS there any way can I remove the +02:00 so I can just have a normal timestamp? the column type is a datetime64[ns, Europe/Berlin]
I want to join two dfs on these times but cannot since the other df has these times already in normal datetime timestamp format such as:
Time
2017-10-09 00:00:00
2017-10-09 00:00:00
2017-10-09 00:00:00
2017-10-09 00:00:00
Thanks!