def get_stats(arr): return np.array([ np.nanmean(arr), np.nanvar(arr), np.nanmedian(arr), np.nanstd(arr), arr.shape[0] ])