While Moving average or running mean does have more traffic (the second duplicate Finding moving average from data points in Python
does not), in my opinion the question set as a duplicate basically contains all logical and performant approaches to compute a moving average and mostly explained in depth. And I'm stressing performant here since the title of the question does mention using NumPy. While the question set as a dupe has a clear contradiction, OP appears to be explicitly asking for a solution using SciPy
or NumPy
but the accepted answer uses lists and for loops. That shouldn't really mean anything, but it can be misleading to future viewers, since the accepted answer will perform quite poorly on large sequences.
So even though someone looking for an answer to this problem finds How to calculate moving average using NumPy? rather than the dupe, I can't see why there's a need to reference the mentioned duplicates, as the question contains in my opinion all useful and performant answers to this problem both in NumPy and in Pandas.
Moving average or running mean does indeed contain very complete answers, and it's not that I have an interest the question not being closed, but for the mentioned reasons I can't see why it is necessary to set it as a duplicate, and that is basically why I decided to reopen it. That being said, I would not mind at all closing it again if a majority of users disagree with this.