Sunday, 8 September 2013

numpy array: replace nan values with average of columns

numpy array: replace nan values with average of columns

I've got a numpy array filled mostly with real numbers, but there is a few
nan values in it as well.
How can I replace the nans with averages of columns where they are?

No comments:

Post a Comment