heartandsole.Activity.timestamp.elapsed
- Activity.timestamp.elapsed(source='records')[source]
Return elapsed time as a timedelta.
- Parameters
source (str) –
Source from which to obtain elapsed time.
records(default): difference between first and last timestamps in the records DataFrame.summary: difference betweenstartandendtimestamps in the summary Series.laps: sum of the differences between each lap’sstartandendtimestamps in the laps DataFrame.
- Returns
Elapsed time according to the requested source. If the Activity does not possess the requested data source, return None.
- Return type
pandas.Timedelta or None
- Raises
ValueError – If source is not a valid option.