I have a dataframe of a garmin cycle computer which collects time series data, among others, of power apply when pedaling. I need to apply a function in python to find out which