To subtract hours, you can use the - operator with pd.Timedelta. For example, if you want to subtract 2 hours from the duration column, you can use the following code: df[duration] = df[duration] - pd.Timedelta(hours=2)