Let's say I have the following dataframe
df.Consumption
0 16.208
1 11.193
2 9.845
3 9.348
4 9.091
...
19611 0.000
19612 0.000
19613 0.000
19614 0.000
19615 0.000
Name: Consumption, Length: 19616, dtype: float64
I want to replace the 0 values with the mean of the 10 previous and next values that are not 0.00
What is a good way to do it? I was thinking about using the replace and interpolate methods but I can't see how to write it efficiently