-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH/TST: Add quantile & mode tests for ArrowExtensionArray #47744
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 11 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
4c65875
Add mode
mroeschke 285aee2
implement quantile
mroeschke 218fc80
Make note about rank
mroeschke ecaf2db
Remove typing
mroeschke 79b85a7
Add NotImplementedError for unsupported versions
mroeschke 53e4d8a
improve xfails
mroeschke 18be328
Change notimmplemented to performancewarning
mroeschke 0ce0b49
Merge remote-tracking branch 'upstream/main' into arrow/misc_methods
mroeschke f787903
Fix scalar case
mroeschke 1fa1cfa
Ignore other warnings
mroeschke 6b018ca
Merge remote-tracking branch 'upstream/main' into arrow/misc_methods
mroeschke f5aa946
Merge remote-tracking branch 'upstream/main' into arrow/misc_methods
mroeschke 8a6586f
Print tests to debug min build timeout
mroeschke 2b97a99
Merge remote-tracking branch 'upstream/main' into arrow/misc_methods
mroeschke 1b7e575
Raise notimplementederror
mroeschke c8f7468
Undo warning message
mroeschke 6d6c735
Undo typing
mroeschke a27c854
reason
mroeschke f5d1b97
multimode case will be fixed in pa=9
mroeschke cd412ab
Fix typo
mroeschke e6246df
Merge remote-tracking branch 'upstream/main' into arrow/misc_methods
mroeschke c99b73d
Merge remote-tracking branch 'upstream/main' into arrow/misc_methods
mroeschke 1996c63
Merge remote-tracking branch 'upstream/main' into arrow/misc_methods
mroeschke 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.
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.
Is there a specific reason for adding this additional sentence?
(since it is so generic, it's also not that useful / potentially confusing I think)
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.
I also wanted to convey in this message that a user may get incorrect results if falling back.
e.g. A user's code could fall back to using
ExtensionArray._mode/_quantile
which may have some numpy-based assumptions that may fail when passing arrow (or arrow transformed) data.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.
If we know (think?) that a certain fallback can give incorrect results, can we rather have it error in that case? (for that specific function)
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.
Yeah that's a good point. Okay I'll leave this message alone, and raise a
NotImplementedError
for the associated case (mode/quantile)