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

consistency of hist and boxplot #3295

Closed
pprett opened this issue Apr 9, 2013 · 2 comments
Closed

consistency of hist and boxplot #3295

pprett opened this issue Apr 9, 2013 · 2 comments
Labels
Duplicate Report Duplicate issue or pull request Visualization plotting
Milestone

Comments

@pprett
Copy link
Contributor

pprett commented Apr 9, 2013

Both DataFrame.hist and DataFrame.boxplot support by to create grouped plots, however, DataFrame.hist requires that any column in by is also included in column while DataFrame.boxplot its vice-versa.

Here is a minimal example::

>>> df = pd.DataFrame({'a': [1, 1, 2, 2, 2, 1], 'b': list('AAABBB')})
>>> df.hist(column=['a', 'b'], by=['b'])
>>> df.boxplot(column=['a'], by=['b'])

>>> df.hist(column=['a'], by=['b'])  # raises an error
KeyError: u'no item named b'
@pprett
Copy link
Contributor Author

pprett commented Apr 9, 2013

this might be a duplicate of #413

@jreback jreback added the Dupe label Mar 14, 2014
@jreback
Copy link
Contributor

jreback commented Mar 14, 2014

closing as already marked in #413 (still unresolved though)

@jreback jreback closed this as completed Mar 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Report Duplicate issue or pull request Visualization plotting
Projects
None yet
Development

No branches or pull requests

2 participants