hotstepper.Steps.span_and_weights¶
-
Steps.span_and_weights()¶ - Returns a number of data items for the step keys within the dataset, such as;
first key, (same as a call to steps.first(), except will always return float)
last key, (same as a call to steps.first(), except will always return float)
span, the total duration or difference between last - first, if the steps are using datetime keys, this will be the total number of seconds between the first and last keys
weight, this is the percentage of the total span duration each step value is realised. It is simply the percentage of time spent at each particular steps value, this is not unique.
Note
If the steps object has values at +/- infinity, these will be ignored, as these values don’t contribute a finite weight or span.
- Returns
- Return type
tuple (first key, last key,span,weight)