df['Time'] = pd.to_datetime(df['Time'], format='%I:%M:%S %p').dt.strftime('%H:%M:%S') print (df) Time 1 17:21:26 2 17:21:58 3 17:22:22 4 17:22:36 5 19:18:16