-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: don't mangle NaN-float-values and pd.NaT (GH 22295) #22296
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
15 commits
Select commit
Hold shift + click to select a range
b84e085
BUG: don't mangle NaN-float-values and pd.NaT (GH 22295)
realead 949fdee
adding unit tests
realead 90de156
don't mangle None, nan and NaT and do not depend on underlying hash-m…
realead a99a9d1
be consistent in the hashtable: no mangling of None, nan and NaT in a…
realead c02d66d
fixing/changing unit test, because NA values are no longer mangled in…
realead 876fb2b
when passing None and other NA values to NumericIndex the value shoul…
realead 622d3cf
adding unit test for GH22332
realead 1d7814e
making PEP8 happy
realead 0dd2513
using fixtures for tests in indexes/test_base.py. Introducing unique_…
realead d5f6457
using null fixtures for tests in test_algos.py
realead 8d97d7f
moving test case nearer to get_loc test cases
realead 41c1d2d
using self._na_value instead of np.nan
realead 9cf7180
add GH number to test case
realead a3fd2ef
adding docstring to NumericIndex.insert (checked in an interactive se…
realead 356b8aa
adding whatsnew
realead 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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't you use the existing nulls_fixture? (ahh or that has the float NaN which are the same as np.nan)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jreback I could have used
nulls_fixture
, but then as you already have pointed out, I would have to filter out[np.nan, float('nan')]
& Co. (which are not list of unique elements) at several places in tests, so I assumed addingunique_nulls_fixture
would be cleaner.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes this is ok (i see how you are using it below).