I have code such as below:
df['time_local'] = pd.to_datetime(df['unix_time'], unit='s').dt.tz_localize('UTC').dt.tz_convert('Europe/Vienna')
This gives me timestamps such as:
Input:
Unix_Time
1507126654
1507126654
Output with above code:
Time_local
2017-10-15 13:05:39+02:00
2017-10-04 22:16:13+02:00
Output:
Time_local
2017-10-15 13:05:39
2017-10-04 22:16:13
How can I remove the offset +02:00 and is this local time even though I have to use tz.localize('UTC') in my code to convert?