Skip to content

Commit

Permalink
fix native kde
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengruifeng committed Feb 7, 2025
1 parent 72c0ef8 commit c1d3996
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/pyspark/sql/plot/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,9 +415,9 @@ def kde(
>>> data = [(5.1, 3.5, 0), (4.9, 3.0, 0), (7.0, 3.2, 1), (6.4, 3.2, 1), (5.9, 3.0, 2)]
>>> columns = ["length", "width", "species"]
>>> df = spark.createDataFrame(data, columns)
>>> df.plot.kde(bw_method=0.3) # doctest: +SKIP
>>> df.plot.kde(column=["length", "width"], bw_method=0.3) # doctest: +SKIP
>>> df.plot.kde(column="length", bw_method=0.3) # doctest: +SKIP
>>> df.plot.kde(bw_method=0.3, ind=100) # doctest: +SKIP
>>> df.plot.kde(column=["length", "width"], bw_method=0.3, ind=100) # doctest: +SKIP
>>> df.plot.kde(column="length", bw_method=0.3, ind=100) # doctest: +SKIP
"""
return self(kind="kde", column=column, bw_method=bw_method, ind=ind, **kwargs)

Expand Down

0 comments on commit c1d3996

Please sign in to comment.