Hacker News new | ask | show | jobs
by abnry 1256 days ago
NaNs are incredibly helpful in numpy. Often I want to take a mean over a collection of lists but the size of each list isn't constant. Np.nanmean works great.