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

Update hist.py #61089

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
BUG: Fix Incompatible argument type for set_xlabel and set_ylabel.
  • Loading branch information
savinserhii committed Mar 9, 2025
commit f1e0e2a425bad608661418251809830494207dfb
2 changes: 1 addition & 1 deletion pandas/plotting/_matplotlib/hist.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def _post_plot_logic(self, ax: Axes, data) -> None:
self.xlabel if isinstance(self.xlabel, str) else str(self.xlabel) # type: ignore[arg-type]
)
ax.set_ylabel(
"Frequency" if self.ylabel is None else ylabel # type: ignore[arg-type]
"Frequency" if self.ylabel is None else self.ylabel # type: ignore[arg-type]
)

@property
Expand Down
Loading