Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: Fix typos in plotting.table #59986

Merged
merged 1 commit into from
Oct 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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