In [65]: import pandas as pd
In [66]: one = pd.Timestamp('2016-12-22 12:22:02.123456789')
In [67]: two = pd.Timestamp('2016-12-22 12:22:02.123456779')
In [68]: one - two
Out[68]: Timedelta('0 days 00:00:00.000000')
I only get microsecond precision here. How can I get the answer in nanoseconds? I must be missing something obvious here. I get nanos when I try the following:
In [69]: one.nanosecond
Out[69]: 789
In [70]: two.nanosecond
Out[70]: 779
But I'd really like to do proper subtraction in case I have bigger delta between the two timestamps.
Any advice is appreciated.