Is there a simple way to convert milliseconds in a dataframe to a datetime without year, month and day?
I have successfully converted a column of milliseconds to datetime. However, I want to get rid of the year, months and days.
I did this:
df['Laptimes'] = pd.to_datetime(df['milliseconds'], unit='ms')
But my values are now formatted as: "1970-01-01 00:01:38.109"
.
I want to have: "01:38:109"