From c05541d12d8985e2606423bb2815a471032bdf79 Mon Sep 17 00:00:00 2001 From: Mortada Mehyar Date: Tue, 8 Jul 2014 17:00:11 -0400 Subject: [PATCH] DOC: table keyword missing in the docstring for Series.plot() and DataFrame.plot() --- pandas/tools/plotting.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pandas/tools/plotting.py b/pandas/tools/plotting.py index c3189ae98f662..83fbc51787b20 100644 --- a/pandas/tools/plotting.py +++ b/pandas/tools/plotting.py @@ -2067,6 +2067,10 @@ def plot_frame(frame=None, x=None, y=None, subplots=False, sharex=True, position : float Specify relative alignments for bar plot layout. From 0 (left/bottom-end) to 1 (right/top-end). Default is 0.5 (center) + table : boolean, Series or DataFrame, default False + If True, draw a table using the data in the DataFrame and the data will + be transposed to meet matplotlib’s default layout. + If a Series or DataFrame is passed, use passed data to draw a table. kwds : keywords Options to pass to matplotlib plotting method @@ -2210,6 +2214,10 @@ def plot_series(series, label=None, kind='line', use_index=True, rot=None, position : float Specify relative alignments for bar plot layout. From 0 (left/bottom-end) to 1 (right/top-end). Default is 0.5 (center) + table : boolean, Series or DataFrame, default False + If True, draw a table using the data in the Series and the data will + be transposed to meet matplotlib’s default layout. + If a Series or DataFrame is passed, use passed data to draw a table. kwds : keywords Options to pass to matplotlib plotting method @@ -2795,7 +2803,7 @@ def table(ax, data, rowLabels=None, colLabels=None, elif isinstance(data, DataFrame): pass else: - raise ValueError('Input data must be dataframe or series') + raise ValueError('Input data must be DataFrame or Series') if rowLabels is None: rowLabels = data.index