-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Efficiency of SparseArray.__getitem__(SparseArray[bool]) #23122
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
Labels
Milestone
Comments
4 tasks
take |
bdrum
added a commit
to bdrum/pandas
that referenced
this issue
Dec 10, 2021
4 tasks
bdrum
added a commit
to bdrum/pandas
that referenced
this issue
Dec 18, 2021
4 tasks
bdrum
added a commit
to bdrum/pandas
that referenced
this issue
Dec 18, 2021
3 tasks
bdrum
added a commit
to bdrum/pandas
that referenced
this issue
Dec 21, 2021
BUG: unary operators for SparseArray doesn't recalc indexes(pandas-dev#44956)
bdrum
added a commit
to bdrum/pandas
that referenced
this issue
Dec 21, 2021
BUG: unary operators for SparseArray doesn't recalc indexes(pandas-dev#44956)
bdrum
added a commit
to bdrum/pandas
that referenced
this issue
Dec 21, 2021
BUG: unary operators for SparseArray doesn't recalc indexes(pandas-dev#44956)
bdrum
added a commit
to bdrum/pandas
that referenced
this issue
Dec 21, 2021
BUG: unary operators for SparseArray doesn't recalc indexes(pandas-dev#44956)
bdrum
added a commit
to bdrum/pandas
that referenced
this issue
Dec 21, 2021
bdrum
added a commit
to bdrum/pandas
that referenced
this issue
Dec 21, 2021
BUG: unary operators for SparseArray doesn't recalc indexes(pandas-dev#44956)
bdrum
added a commit
to bdrum/pandas
that referenced
this issue
Dec 24, 2021
bdrum
added a commit
to bdrum/pandas
that referenced
this issue
Dec 24, 2021
jreback
pushed a commit
that referenced
this issue
Dec 27, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This currently densifies:
pandas/pandas/core/sparse/array.py
Lines 651 to 659 in 56d8e78
I haven't investigated it, but we should be able to do a boolean mask as an
intersection sp_values on
self
andkey
. Ifkey
isSparseDtype[bool, False]
(i.e. False is the fill_value) this should be a lot faster.
The text was updated successfully, but these errors were encountered: