I have a DataFrame
with one column sensorTime
representing timestamps in nanoseconds (currentTimeMillis()
* 1000000). An example is the following:
sensorTime
1597199687312000000
1597199687315434496
1597199687320437760
1597199687325465856
1597199687330448640
1597199687335456512
1597199687340429824
1597199687345459456
1597199687350439168
1597199687355445504
I'm transforming this column to datetime
using
res['sensorTime'] = pd.to_datetime(res['sensorTime'])
How can I transform the datetime back to timestamps in nanoseconds so that I get the exact values as in the example above?