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)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(activity)

Initialize self.

Attributes

STOPPED_THRESHOLD

required_columns