runpandas.types.acessors.metrics.MetricsAcessor#

class runpandas.types.acessors.metrics.MetricsAcessor(activity)#

Dataframe Accessor to compute all available metrics from an activity

Raises

AttributeError – if at least one of the needed columns is missing.

__init__(activity)#

Methods

__init__(activity)

distance([correct_distance, to_special_column])

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

gradient([to_special_column])

Calculates the gradient ratio from an Activity frame.

heart_zone(bins, labels, **kwargs)

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

pace([to_special_column])

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

speed([from_distances, to_special_column])

Calculates the speed in meters using an Activity frame.

time_in_zone(bins, labels, **kwargs)

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

vertical_speed([to_special_column])

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