How could i replicate this line below as a forloop? This line worked:
data= data.resample('W').last()
data
date result
2010-01-10 0.53
2010-01-17 0.55
To convert to a forloop, I tried this. This raises no error, but doesn't modify the data at all:
listxx = [(data, "data")]
for (x, y) in listxx:
x = x.resample('W').last()