Acessors#

Special acessors to perform activity transformations or derived observations based on activity data.

Moving#

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.

Metrics#

metrics.MetricsAcessor(activity)

Dataframe Accessor to compute all available metrics from an activity

metrics.MetricsAcessor.speed([...])

Calculates the speed in meters using an Activity frame.

metrics.MetricsAcessor.distance([...])

Calculates the distance in meters using haversine distance formula on an Activity frame.

metrics.MetricsAcessor.vertical_speed([...])

Calculates the vertical climbing speed (VAM) in meters using an Activity frame.

metrics.MetricsAcessor.gradient([...])

Calculates the gradient ratio from an Activity frame.

metrics.MetricsAcessor.pace([to_special_column])

Calculates the pace (the time that it takes to cover distances in your activities).

metrics.MetricsAcessor.heart_zone(bins, ...)

Returns a pandas.Series with the training zone labels for each heart rate record.

metrics.MetricsAcessor.time_in_zone(bins, ...)

Returns a pandas.Series with the values counts in timedelta for each heart training zone.

Session#

session._SessionAcessor(session)

Dataframe Accessor to compute the aggregated metrics from a MultiIndex runpandas.types.Activity object.

session._SessionAcessor.summarize()

Summarize the session of activities by returning a Dataframe of the aggregated main statistics.

session._SessionAcessor.count()

Returns the total number of activities in the session.

session._SessionAcessor.distance([...])

Compute the distance per position and total distance acummulative over all the activities.

session._SessionAcessor.speed([...])

Compute the speed in meters over all the activities.

session._SessionAcessor.vertical_speed([...])

Compute the vertical climbing speed (VAM) in meters over all the activities.

session._SessionAcessor.gradient([...])

Compute the gradient ratio over all the activities.

session._SessionAcessor.pace([to_special_column])

Compute the pace (the time that it takes to cover distances in your activities) over all the activities.

session._SessionAcessor.heart_zone(bins, ...)

Compute the heart zone (with the training zone labels for each heart rate record) over all the activities.

session._SessionAcessor.only_moving([threshold])

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 for all the activities in the session.

Splits#

splits._RaceSplitsAcessor.pick_athlete(...)

Return all splits of a specific athlete in RaceResult based on the athelete's BIB number or based on the race position.