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)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(activity)Initialize self.
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.
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.
vertical_speed([to_special_column])Calculates the vertical climbing speed (VAM) in meters using an Activity frame.