Calculate peak of kernel density estimator

def kde_peak(self, name, npoints=_npoints, **kwargs):
        """ 
        Calculate peak of kernel density estimator
        """
        data = self.get(name,**kwargs)
        return kde_peak(data,npoints)