-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
add bins argument to Histogram function #6850
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
Conversation
can you move the argument to the end of the arg list pls. |
I'll look closer at this later, but the usual convention for our plotting functions is that any keyword arguments used in matplotlib's Also you may want to use |
@jreback updated argument list |
I misspoke earlier. |
@TomAugspurger what should we do with this? |
I'm happy whatever you decide to do. I just rebased against upstream/master in case its a go. |
The downside is that this will be inconsistent with all our other plotting functions, where the arguments that go directly to the maptlotlib function are passed in the **kwargs section. But, it's good for discoverability, so let's merge. @zachcp could you move the Looks like you had a test fail too. |
add bins to histrogram
made a couple minor fixes to padd test (need to pass bins as arg) and added two small tests. |
DOC: add bins argument to Histogram function
OK thanks. Don't need a release notes entry since this is really just a doc change. There isn't any change to the API |
Oops, looks like we missed a call to hist in |
merged #6935 |
The primary argument used when plotting histograms is
bins
. This argument is not in the pandas documentation so you do not see it when auto-tabbing for documentation. I have addedbins=10
as an argument to the dataframe and series histogram function while also adding a line of documentation.10
is the matplotlib default bin value so this is only makingbins
visible, not adding or changing any plotting functionality.