MAINT: return nan instead inf for skew/kurtosis