Skip to content

Commit 372008a

Browse files
Merge pull request #7698 from mortada/df_table
DOC: table keyword missing in the docstring for Series.plot() and DataFr...
2 parents 2750110 + c05541d commit 372008a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pandas/tools/plotting.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -2067,6 +2067,10 @@ def plot_frame(frame=None, x=None, y=None, subplots=False, sharex=True,
20672067
position : float
20682068
Specify relative alignments for bar plot layout.
20692069
From 0 (left/bottom-end) to 1 (right/top-end). Default is 0.5 (center)
2070+
table : boolean, Series or DataFrame, default False
2071+
If True, draw a table using the data in the DataFrame and the data will
2072+
be transposed to meet matplotlib’s default layout.
2073+
If a Series or DataFrame is passed, use passed data to draw a table.
20702074
kwds : keywords
20712075
Options to pass to matplotlib plotting method
20722076
@@ -2210,6 +2214,10 @@ def plot_series(series, label=None, kind='line', use_index=True, rot=None,
22102214
position : float
22112215
Specify relative alignments for bar plot layout.
22122216
From 0 (left/bottom-end) to 1 (right/top-end). Default is 0.5 (center)
2217+
table : boolean, Series or DataFrame, default False
2218+
If True, draw a table using the data in the Series and the data will
2219+
be transposed to meet matplotlib’s default layout.
2220+
If a Series or DataFrame is passed, use passed data to draw a table.
22132221
kwds : keywords
22142222
Options to pass to matplotlib plotting method
22152223
@@ -2795,7 +2803,7 @@ def table(ax, data, rowLabels=None, colLabels=None,
27952803
elif isinstance(data, DataFrame):
27962804
pass
27972805
else:
2798-
raise ValueError('Input data must be dataframe or series')
2806+
raise ValueError('Input data must be DataFrame or Series')
27992807

28002808
if rowLabels is None:
28012809
rowLabels = data.index

0 commit comments

Comments
 (0)