Skip to content

Commit 5829e3e

Browse files
authored
DOC: Fix typos in plotting.table (#59986)
Fix typos in pandas.plotting.table docstring.
1 parent 3c2c5f4 commit 5829e3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/plotting/_misc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def table(ax: Axes, data: DataFrame | Series, **kwargs) -> Table:
3939
**kwargs
4040
Keyword arguments to be passed to matplotlib.table.table.
4141
If `rowLabels` or `colLabels` is not specified, data index or column
42-
name will be used.
42+
names will be used.
4343
4444
Returns
4545
-------
@@ -59,11 +59,11 @@ def table(ax: Axes, data: DataFrame | Series, **kwargs) -> Table:
5959
6060
>>> import matplotlib.pyplot as plt
6161
>>> df = pd.DataFrame({"A": [1, 2], "B": [3, 4]})
62-
>>> fix, ax = plt.subplots()
62+
>>> fig, ax = plt.subplots()
6363
>>> ax.axis("off")
6464
(0.0, 1.0, 0.0, 1.0)
6565
>>> table = pd.plotting.table(
66-
... ax, df, loc="center", cellLoc="center", colWidths=list([0.2, 0.2])
66+
... ax, df, loc="center", cellLoc="center", colWidths=[0.2, 0.2]
6767
... )
6868
"""
6969
plot_backend = _get_plot_backend("matplotlib")

0 commit comments

Comments
 (0)