-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
BUG: SparseArray.unique with all sparse #23186
BUG: SparseArray.unique with all sparse #23186
Conversation
Hello @TomAugspurger! Thanks for submitting the PR.
|
Codecov Report
@@ Coverage Diff @@
## master #23186 +/- ##
==========================================
- Coverage 92.19% 92.19% -0.01%
==========================================
Files 169 169
Lines 50959 50956 -3
==========================================
- Hits 46980 46977 -3
Misses 3979 3979
Continue to review full report at Codecov.
|
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.
maybe add this issue to the sparse array refactor issue. also I think there is an open sparse unique issue as well? #19595
pandas/core/arrays/sparse.py
Outdated
@@ -809,7 +809,7 @@ def _first_fill_value_loc(self): | |||
return -1 | |||
|
|||
indices = self.sp_index.to_int_index().indices | |||
if indices[0] > 0: | |||
if len(indices) == 0 or indices[0] > 0: |
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.
not len(indices) ?
Ignoring the windows CI failure from yesterday. |
* BUG: SparseArray.unique with all sparse * fixup
xref #23168
Closes #19595