Skip to content

Commit

Permalink
[MINOR][PS][DOCS] Add DataFrame.plot.kde to API reference
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?
1, add `DataFrame.plot.kde` to API reference;
2, sort the plotting function alphabetically;

### Why are the changes needed?
`DataFrame.plot.kde` is a public function in Pandas https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.plot.kde.html

And it was already implemented in PS, but never exposed to users.

### Does this PR introduce _any_ user-facing change?
Yes, doc-only changes

### How was this patch tested?
CI

### Was this patch authored or co-authored using generative AI tooling?
No

Closes #47564 from zhengruifeng/add_kde_to_doc.

Authored-by: Ruifeng Zheng <ruifengz@apache.org>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
  • Loading branch information
zhengruifeng authored and HyukjinKwon committed Aug 1, 2024
1 parent bf3ad7e commit c3bb64e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions python/docs/source/reference/pyspark.pandas/frame.rst
Original file line number Diff line number Diff line change
Expand Up @@ -326,14 +326,15 @@ specific plotting methods of the form ``DataFrame.plot.<kind>``.
:template: autosummary/accessor_method.rst

DataFrame.plot.area
DataFrame.plot.barh
DataFrame.plot.bar
DataFrame.plot.hist
DataFrame.plot.barh
DataFrame.plot.box
DataFrame.plot.density
DataFrame.plot.hist
DataFrame.plot.kde
DataFrame.plot.line
DataFrame.plot.pie
DataFrame.plot.scatter
DataFrame.plot.density

.. autosummary::
:toctree: api/
Expand Down
2 changes: 1 addition & 1 deletion python/docs/source/reference/pyspark.pandas/series.rst
Original file line number Diff line number Diff line change
Expand Up @@ -461,9 +461,9 @@ specific plotting methods of the form ``Series.plot.<kind>``.
Series.plot.box
Series.plot.density
Series.plot.hist
Series.plot.kde
Series.plot.line
Series.plot.pie
Series.plot.kde

.. autosummary::
:toctree: api/
Expand Down

0 comments on commit c3bb64e

Please sign in to comment.