Skip to content

Please, add sharey keyword to boxplot. #20918

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
sorenwacker opened this issue May 1, 2018 · 2 comments · Fixed by #20968
Closed

Please, add sharey keyword to boxplot. #20918

sorenwacker opened this issue May 1, 2018 · 2 comments · Fixed by #20968
Milestone

Comments

@sorenwacker
Copy link

sorenwacker commented May 1, 2018

Code Sample, a copy-pastable example if possible

df.groupby('some feature').boxplot(sharey=False)

Problem description

Boxplot by default creates plots with shared y axis. The keyword sharey=False is not accepted. However, it would be consistent with df.plot(). This is unfortunate if you don't want to compare values across the subplots. There is a workaround mentioned here, but having the option to turn that "feature" off would be much simpler.

INSTALLED VERSIONS

commit: None
python: 3.6.5.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-17134-Microsoft
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8

pandas: 0.22.0
pytest: None
pip: 9.0.3
setuptools: 39.0.1
Cython: None
numpy: 1.14.2
scipy: 1.0.1
pyarrow: None
xarray: None
IPython: 6.3.1
sphinx: None
patsy: 0.5.0
dateutil: 2.7.2
pytz: 2018.4
blosc: None
bottleneck: None
tables: 3.4.3
numexpr: 2.6.4
feather: None
matplotlib: 2.2.2
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: 0.9999999
sqlalchemy: 1.2.7
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None

@spizwhiz
Copy link

spizwhiz commented May 4, 2018

Agreed that this feature would be an excellent additon! Thanks.

@sorenwacker
Copy link
Author

sorenwacker commented May 5, 2018

I made some changes in the code seems to work. Now, I can pass sharey and sharex to df.groupby().boxplot() and change the behavior. pytest is running without errors.

And (how) would you generate a test for the feature?

@jreback jreback modified the milestones: Next Major Release, 0.23.1 May 29, 2018
@jorisvandenbossche jorisvandenbossche modified the milestones: 0.23.1, Next Major Release Jun 6, 2018
@jreback jreback modified the milestones: Next Major Release, 0.23.1 Jun 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants