def _std ( self , x ) : return np . nanstd ( x . values , ddof = self . _ddof )
python scipy standard deviation
Compute standard deviation with ddof degrees of freedom
def _std(self,x):
        """
        Compute standard deviation with ddof degrees of freedom
        """
        return np.nanstd(x.values,ddof=self._ddof)