how to add 30 minutes in datetime column in pandas

Solutions on MaxInterview for how to add 30 minutes in datetime column in pandas by the best coders in the world

showing results for - "how to add 30 minutes in datetime column in pandas"
Damián
08 Jan 2018
1df['time'] = pd.to_datetime(df['time'].astype(str)) + pd.DateOffset(hours=5, minutes=30)
2
3print(df['time'].head())
4
50   2018-12-24 10:20:00
61   2018-12-24 10:20:00
72   2018-12-24 10:30:00
83   2018-12-24 10:42:00
94   2018-12-24 11:34:00
10Name: 1, dtype: datetime64[ns]
11