runpandas.types.acessors.moving._InactivityAssessor#
- class runpandas.types.acessors.moving._InactivityAssessor(activity)#
Dataframe Accessor to impute the periods of inactivity, as such periods must be detected and ignored from the analysis for moving time, heart rate, speed, and power-based calculations.
- Parameters
threshold (float, default 0.8) – When the speed of a record drops below the threshold speed a ‘false’ event is set to the ‘moving’column, and when the speed rises above the threshold speed a ‘true’ event is set to the ‘moving’ column.
- Raises
AttributeError – if at least one of the needed columns is missing.
- __init__(activity)#
Methods
__init__(activity)Attributes
STOPPED_THRESHOLDrequired_columns