I have the below dataframe: I want to replace the NaN values with the 3 month rolling average. How should I got about this? Answer If you take NaNs as 0 into your means, can do: This will give you:
I have the below dataframe: I want to replace the NaN values with the 3 month rolling average. How should I got about this? Answer If you take NaNs as 0 into your means, can do: This will give you: