-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
BUG: histogram weights aren't dropped if NaN values in data #48888
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
Merged
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
1c9854f
drop weights corresponding to nan y
AdamOrmondroyd ce78d4a
Merge branch 'main' into weights
AdamOrmondroyd 43db4be
remove unused/nonexistent import from previous experiment
AdamOrmondroyd 3d9393c
correct handling of weights kwd (each loop makes a new copy of self.k…
AdamOrmondroyd 2c56296
Merge branch 'main' into weights
AdamOrmondroyd 7419c70
no need to set kwds[weights] unless weights is None
AdamOrmondroyd 2b75c3b
formatted with black
AdamOrmondroyd e23efe1
create test
AdamOrmondroyd 8ab15d2
Merge branch 'main' into weights
AdamOrmondroyd f62f18f
tidy slicing
AdamOrmondroyd cb02106
Merge branch 'main' into weights
AdamOrmondroyd 7028e75
remove square brackets
AdamOrmondroyd ab2941d
don't pick rows at random
AdamOrmondroyd a506972
set df nan elements individually
AdamOrmondroyd 6ff09b3
clearer comment
AdamOrmondroyd 9ee8759
instead of random df and weights, manually create a 3x3 df etc
AdamOrmondroyd 1f5734a
Merge branch 'pandas-dev:main' into weights
AdamOrmondroyd b29b50d
Merge branch 'main' into weights
mroeschke f0054d6
Merge branch 'main' into weights
AdamOrmondroyd 7f3fd9a
nested if to save checking None twice
AdamOrmondroyd 42a12e3
Merge branch 'pandas-dev:main' into weights
AdamOrmondroyd 59fdac1
add entry to docs
AdamOrmondroyd c9e5a36
response to comment on docs entry
AdamOrmondroyd 58e8da3
Merge branch 'pandas-dev:main' into weights
AdamOrmondroyd 599359b
specify DataFrame.plot.hist
AdamOrmondroyd e946b50
change test name to test_hist_with_nans_and_weights
AdamOrmondroyd a20b8ad
remove comments from test
AdamOrmondroyd 53228b7
Merge branch 'main' into weights
AdamOrmondroyd 4dd9471
Merge branch 'main' into weights
AdamOrmondroyd e0a2944
skip test if no mpl
AdamOrmondroyd d0330bc
Merge branch 'main' into weights
AdamOrmondroyd 6823577
check that weights is the correct shape
AdamOrmondroyd c540381
ran pre-commit
AdamOrmondroyd 4597844
check for IndexError rather than shape
AdamOrmondroyd 2a3d9cc
Merge branch 'main' into weights
AdamOrmondroyd 58621eb
Merge branch 'main' into weights
AdamOrmondroyd 8a4e7d7
remove data shape hint from error, as data's type is unclear
AdamOrmondroyd 8e54d95
Merge branch 'main' into weights
AdamOrmondroyd 0feb62a
Merge branch 'main' into weights
AdamOrmondroyd 8937c88
add out of bounds test and raise ValueError from IndexError
AdamOrmondroyd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.