Mean of empty slice and Degrees of freedom <=0 Mean of empty slice and Degrees of freedom <=0 numpy numpy