-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST/CLN: Remove unnecessary pyarrow version checking #51545
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
TST/CLN: Remove unnecessary pyarrow version checking #51545
Conversation
pandas/core/arrays/arrow/array.py
Outdated
# https://issues.apache.org/jira/browse/ARROW-12042 | ||
fallback_performancewarning("7") | ||
if null_placement is None: | ||
fallback_performancewarning() |
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 the warning still necessary?
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.
Good catch. I think now this can raise an error directly
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.
LGTM pending green
FAILED pandas/tests/indexes/test_common.py::test_sort_values_invalid_na_position[string-pyarrow-None] - AssertionError: Did not see expected warning of class 'PerformanceWarning' |
Looks like the (some?) failures are due to #51483 (should have been more careful with merging after being stricter with the warnings) |
Can you remove my tm.assert_produces_warning when you are ready here? |
Sure, done in the last commit. Going to merge and backport just in case 2.0 has any PRs that impact |
…ow version checking) (#51595) Backport PR #51545: TST/CLN: Remove unnecessary pyarrow version checking Co-authored-by: Matthew Roeschke <[email protected]>
I think this shouldn't be necessary since 7.0 is the minimum version supported now.