-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
[SPARK-36818][PYTHON] Fix filtering a Series by a boolean Series #34061
Conversation
Test build #143482 has finished for PR 34061 at commit
|
Kubernetes integration test starting |
Kubernetes integration test status failure |
Test build #143486 has finished for PR 34061 at commit
|
Kubernetes integration test starting |
Kubernetes integration test status failure |
Test build #143489 has finished for PR 34061 at commit
|
Kubernetes integration test starting |
Test build #143490 has finished for PR 34061 at commit
|
Kubernetes integration test starting |
Kubernetes integration test status failure |
Kubernetes integration test status failure |
Test build #143510 has finished for PR 34061 at commit
|
Kubernetes integration test starting |
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.
Thanks! merging to master/3.2 |
### What changes were proposed in this pull request? Fix filtering a Series (without a name) by a boolean Series. ### Why are the changes needed? A bugfix. The issue is raised as databricks/koalas#2199. ### Does this PR introduce _any_ user-facing change? Yes. #### From ```py >>> psser = ps.Series([0, 1, 2, 3, 4]) >>> ps.set_option('compute.ops_on_diff_frames', True) >>> psser.loc[ps.Series([True, True, True, False, False])] Traceback (most recent call last): ... KeyError: 'none key' ``` #### To ```py >>> psser = ps.Series([0, 1, 2, 3, 4]) >>> ps.set_option('compute.ops_on_diff_frames', True) >>> psser.loc[ps.Series([True, True, True, False, False])] 0 0 1 1 2 2 dtype: int64 ``` ### How was this patch tested? Unit test. Closes #34061 from xinrong-databricks/filter_series. Authored-by: Xinrong Meng <[email protected]> Signed-off-by: Takuya UESHIN <[email protected]> (cherry picked from commit 6a5ee02) Signed-off-by: Takuya UESHIN <[email protected]>
Kubernetes integration test status failure |
What changes were proposed in this pull request?
Fix filtering a Series (without a name) by a boolean Series.
Why are the changes needed?
A bugfix. The issue is raised as databricks/koalas#2199.
Does this PR introduce any user-facing change?
Yes.
From
To
How was this patch tested?
Unit test.