s = pd.Series([1, 2, 3, 2, 1, 2, 3, 2, 1])
df = pd.DataFrame({'DATA': s, 'POINTS': 0})
How to calculate the values of a pandas DataFrame column depending on the results of a rolling function from another column