I'm dealing with a DataFrame that contains column of time like "hh:mm:ss" and I need to convert those values to the NumPy datetime64
type.
import pandas as pd
data = [dict(voie="V3", Start="06:10", End='06:20'),
dict(voie="V5", Start='06:26', End='06:29'),
dict(voie="V3", Start='06:20', End='06:30'),
dict(voie="V5", Start='06:32', End='06:35')]
df = pd.DataFrame(data)
#df = df['Start'].to-datetime64()
I need to convert the column Start
and End
from type string
to datetime64