title: How to calculate rolling / moving average using python + NumPy / SciPy?
body: <p>There seems to be no function that simply calculates the moving average on numpy/scipy, leading to <a href="https://stackoverflow.com/questions/12816011/weighted-moving-average-with-numpy-convolve">convoluted solutions</a>.</p>
  
  <p>My question is two-fold:</p>
  
  <ul>
  <li>What's the easiest way to (correctly) implement a moving average with numpy?</li>
  <li>Since this seems non-trivial and error prone, is there a good reason not to have the <a href="https://www.python.org/dev/peps/pep-0206/#batteries-included-philosophy" rel="noreferrer">batteries included</a> in this case?</li>
  </ul>