Hi function like numpy.nan_to_num would be very useful so we dont have to replace NaNs by hand
numpy.nan_to_num