0

I want to convert all the values in the "time" column in my dataframe to the pandas datetime format. All the values in this column will be in the same format: 24 hour:minute:second:milliseconds.

data = {"time":["17:41:13.399"],
    "altitude":["98.71"],
    "airtemp":["11.44"],
    "airpressure":["101238.58"]
}

df = pd.DataFrame(data)

Is there a pandas expression that can convert the entire "time" column to the appropriate pandas datetime format?

Thanks

MrNiver632
  • 21
  • 2

0 Answers0