I have datetime index
import pandas as pd
sample = ['2021-01-19 15:55:00-05:00',
'2021-01-19 15:56:00-05:00',
'2021-01-19 15:56:00-05:00']
sample = pd.to_datetime(sample)
I would like to create new column that represents time measured in the number of milliseconds since midnight.
There is one solution for seconds timeframe Get the time spent since midnight in dataframe but I was not able to convert it to miliseconds.