Say you have two lists of x and y values. And you also have a list of values ββfor the moving average, but maybe this is not necessary. If you want to identify bursts, you can subtract the previous y series value to get the size of the difference between adjacent values:
spikes = [0.0] + [abs(y[i]-y[i-1]) for i in range(1, len(y))]

Then the peaks of interest to you have a value greater than 0.16 (0.08 above average, 0.08 below). You can find them like this:
threshold = 0.08 spike_locations = [x[i] for i in range(len(spikes)) if spikes[i] > 2 * threshold] [22.0, 35.0, 36.0]
source share