Skip to content

Commit

Permalink
DOC: Fix typos in plotting.table (#59986)
Browse files Browse the repository at this point in the history
Fix typos in pandas.plotting.table docstring.
  • Loading branch information
StefRe authored Oct 6, 2024
1 parent 3c2c5f4 commit 5829e3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pandas/plotting/_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def table(ax: Axes, data: DataFrame | Series, **kwargs) -> Table:
**kwargs
Keyword arguments to be passed to matplotlib.table.table.
If `rowLabels` or `colLabels` is not specified, data index or column
name will be used.
names will be used.
Returns
-------
Expand All @@ -59,11 +59,11 @@ def table(ax: Axes, data: DataFrame | Series, **kwargs) -> Table:
>>> import matplotlib.pyplot as plt
>>> df = pd.DataFrame({"A": [1, 2], "B": [3, 4]})
>>> fix, ax = plt.subplots()
>>> fig, ax = plt.subplots()
>>> ax.axis("off")
(0.0, 1.0, 0.0, 1.0)
>>> table = pd.plotting.table(
... ax, df, loc="center", cellLoc="center", colWidths=list([0.2, 0.2])
... ax, df, loc="center", cellLoc="center", colWidths=[0.2, 0.2]
... )
"""
plot_backend = _get_plot_backend("matplotlib")
Expand Down

0 comments on commit 5829e3e

Please sign in to comment.