When I take the nanmean of an array that has an all-empty slice I get the warning "RuntimeWarning: Mean of empty slice". I think this is fairly obvious - but what is the easiest way to resolve this warning but still get the same behavior without more broadly suppressing warnings?
np.nanmean([np.array([np.nan]), np.array([np.nan])], axis = 0) = np.nan (warning triggered)
np.nanmean([np.array([np.nan]), np.array([1])], axis = 0) = 1.0