8000 Fix for DataFrame.hist() with by- and weights-keyword by Twizzledrizzle · Pull Request #11028 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

Fix for DataFrame.hist() with by- and weights-keyword #11028

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

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
fix for scatterplot not having the 'weights' implemented
  • Loading branch information
Twizzledrizzle committed Sep 9, 2015
commit 1c0df890137d5cdc07c11d10721c35f2baa552a7
6 changes: 5 additions & 1 deletion pandas/tools/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -3002,7 +3002,11 @@ def _grouped_plot(plotf, data, column=None, weights=None, by=None, numeric_only=
group = group._get_numeric_data()
if weight is not None:
weight = weight._get_numeric_data()
plotf(group, ax, weight, **kwargs)
if weight is not None:
plotf(group, ax, weight, **kwargs)
else:
# scatterplot etc has not the weight implemented in plotf
plotf(group, ax, **kwargs)
ax.set_title(com.pprint_thing(key))

return fig, axes
Expand Down
0