Aug-01-2019, 10:24 AM
(Jul-25-2019, 12:20 AM)scidam Wrote: You don't need apply Timedelta, the difference is already instance of Pandas TimeDelta class.
(df.index[-1] - df.index[0]).total_seconds()
thank you. this worked. I added dividing by 86400 to get the days as well.
((df.index[-1] - df.index[0]).total_seconds())/86400[/quote]