title: Numpy Two-Dimensional Moving Average
body: <p>I have a 2d numpy array. I want to take the average value of the n nearest entries to each entry, just like taking a sliding average over a one-dimensional array. What is the cleanest way to do this?</p>