You don't need apply Timedelta, the difference is already instance of Pandas TimeDelta class.
(df.index[-1] - df.index[0]).total_seconds()
How to find difference between two timestamp index
|
|
Messages In This Thread |
How to find difference between two timestamp index - by python_newbie09 - Jul-24-2019, 07:54 AM
RE: How to find difference between two timestamp index - by scidam - Jul-25-2019, 12:20 AM
RE: How to find difference between two timestamp index - by python_newbie09 - Aug-01-2019, 10:24 AM
RE: How to find difference between two timestamp index - by Larz60+ - Jul-25-2019, 12:43 AM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
[split] Getting Index Error - list index out of range | krishna | 2 | 2,679 |
Jan-09-2021, 08:29 AM Last Post: buran |
|
Getting Index Error - list index out of range | RahulSingh | 2 | 6,217 |
Feb-03-2020, 07:17 AM Last Post: RahulSingh |
|
How to find index of a particular value in a dataframe | ankitawadhwa | 0 | 2,416 |
Jan-21-2020, 09:45 PM Last Post: ankitawadhwa |
|
How to find column index and its corresponding column name | Raj | 2 | 3,453 |
May-10-2018, 12:30 PM Last Post: volcano63 |