i have a csv file like this:
"time","student","items"
"09:00:00","Tim","apple"
"09:00:05","Jason","orange"
"09:00:10","Emily","grape"
"09:00:15","Ivy","kiwi"
(many time and the interval is 5 second)
i want to use pandas to let time to become the index and i want the time looks like the following 2019-05-09 09:00:00
datetime.datetime(2019, 5, 9, 9, 0)
i can only get the simple one
time
09:00:00
09:00:05
09:00:10
09:00:15
and can't get the type mentioned above
import pandas as pd
df0509 = pd.read_csv("0509.csv",index_col="time")