runpandas.types.acessors.metrics.MetricsAcessor.heart_zone#

MetricsAcessor.heart_zone(bins, labels, **kwargs)#

Returns a pandas.Series with the training zone labels for each heart rate record. This method uses the pandas.cut() method. Nan will be returned for values that are not in any of the bins.

Parameters
  • bins (Left and right bounds for each zone.) – An example of valid bins are [0, 100, 140, 160, 999].

  • labels (Specifies the labels for the zones.) – Must be the same length as the resulting zones. Example of valid labels is [“Z1”, “Z2”, “Z3”, “Z4”, “Z5”].

  • **kwargs (Keyword args to be passed to the heart_zone build method) –

Returns

series

Return type

pandas.Series with the zone label for each value.