Summing elements in a sliding window - NumPy
<p>There is a numpy way to make a sum each three elements in the interval? For example:</p>

<pre><code>import numpy as np
mydata = np.array([4, 2, 3, 8, -6, 10])
</code></pre>

<p>I would like to get this result:</p>

<pre><code>np.array([9, 13, 5, 12])
</code></pre>