title: numpy array: replace nan values with average of columns
body: <p>I've got a numpy array filled mostly with real numbers, but there is a few <code>nan</code> values in it as well.</p>
  
  <p>How can I replace the <code>nan</code>s with averages of columns where they are?</p>