scipy.stats
gaussian_kde.
resample
Randomly sample a dataset from the estimated pdf.
The number of samples to draw. If not provided, then the size is the same as the underlying dataset.
The sampled dataset.
scipy.stats.gaussian_kde.logpdf
scipy.stats.gaussian_kde.set_bandwidth