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

BUG : deal with empty list passed to boxplot #3571

Merged
merged 1 commit into from Sep 27, 2014

Conversation

tacaswell
Copy link
Member

If a data list is empty, return a dict full of np.nan.

Closes #3569 and addresses part of pandas-dev/pandas#8382

4th time's the charm on this commit.

Needs testing.

@tacaswell tacaswell added this to the v1.4.1 milestone Sep 27, 2014
@tacaswell tacaswell added status: needs revision status: needs review Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. labels Sep 27, 2014
If a data list is empty, return a dict full of np.nan.

Closes matplotlib#3569 and addresses part of
pandas-dev/pandas#8382
mdboom added a commit that referenced this pull request Sep 27, 2014
BUG : deal with empty list passed to boxplot
@mdboom mdboom merged commit 6f6afc5 into matplotlib:v1.4.x Sep 27, 2014
@tacaswell tacaswell deleted the bxp_empty branch September 27, 2014 20:09
jairideout added a commit to jairideout/scikit-bio that referenced this pull request Oct 6, 2014
Empty distributions are plottable in mpl < 1.4.0. In 1.4.0, a ValueError is raised. This has been fixed in mpl 1.4.0-dev (see matplotlib/matplotlib#3571). In order for skbio.draw.boxplots to support empty distributions across mpl versions, empty distributions are replaced with [np.nan]. See pandas-dev/pandas#8382 and pandas-dev/pandas#8240 for details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants