DataFrame.
kde
Generate Kernel Density Estimate plot using Gaussian kernels.
The method used to calculate the estimator bandwidth. See KernelDensity in PySpark for more information.
Evaluation points for the estimated PDF. If None (default), 1000 equally spaced points are used. If ind is a NumPy array, the KDE is evaluated at the points passed. If ind is an integer, ind number of equally spaced points are used.
Keyword arguments to pass on to Koalas.DataFrame.plot().
Koalas.DataFrame.plot()
Examples
For DataFrame, it works in the same way as Series:
>>> df = ks.DataFrame({ ... 'x': [1, 2, 2.5, 3, 3.5, 4, 5], ... 'y': [4, 4, 4.5, 5, 5.5, 6, 6], ... }) >>> ax = df.plot.kde(bw_method=0.3)
>>> ax = df.plot.kde(bw_method=3)
>>> ax = df.plot.kde(ind=[1, 2, 3, 4, 5, 6], bw_method=0.3)