Skip to content

Commit 0f6e8a3

Browse files
author
y-p
committed
Merge pull request #2917 from gdraps/plot-doc-kde
DOC: add "kde" and "density" to plot kind docstring
2 parents e9b9ca5 + 57347c0 commit 0f6e8a3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pandas/tools/plotting.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,9 +1393,10 @@ def plot_frame(frame=None, x=None, y=None, subplots=False, sharex=True,
13931393
ax : matplotlib axis object, default None
13941394
style : list or dict
13951395
matplotlib line style per column
1396-
kind : {'line', 'bar', 'barh'}
1396+
kind : {'line', 'bar', 'barh', 'kde', 'density'}
13971397
bar : vertical bar plot
13981398
barh : horizontal bar plot
1399+
kde/density : Kernel Density Estimation plot
13991400
logx : boolean, default False
14001401
For line plots, use log scaling on x axis
14011402
logy : boolean, default False
@@ -1473,9 +1474,10 @@ def plot_series(series, label=None, kind='line', use_index=True, rot=None,
14731474
Parameters
14741475
----------
14751476
label : label argument to provide to plot
1476-
kind : {'line', 'bar', 'barh'}
1477+
kind : {'line', 'bar', 'barh', 'kde', 'density'}
14771478
bar : vertical bar plot
14781479
barh : horizontal bar plot
1480+
kde/density : Kernel Density Estimation plot
14791481
use_index : boolean, default True
14801482
Plot index as axis tick labels
14811483
rot : int, default None

0 commit comments

Comments
 (0)