df = pd.DataFrame({'DATA': s, 'POINTS': 0})
df.POINTS = df.DATA.rolling(4).max().shift(-1)
df.POINTS = (df.POINTS * (df.POINTS == df.DATA)).fillna(0)
How to calculate the values of a pandas DataFrame column depending on the results of a rolling function from another column