I have a time series dataset. I would like to find the 5 data points before each peak in the graph.
Peak is simply identified if the current data point is greater than th