-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REGR: reindex with sparse data #35286
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
Comments
Thanks for following up. I'll look at this a bit today, and revert if I don't find an easy solution. |
I think I'm just going to revert #34158 for now. It looks to have a few issues. Some places in pandas/pandas/core/arrays/sparse/array.py Lines 874 to 899 in 492e3e9
self.fill_value rather than fill_value (that's why we get 0s instead of NaNs). A simple change didn't look locally, and I'm not planning to look more today.
|
I might have time to take a stab at this in the next couple weeks (but if anyone else feels the urge to give it a go don't wait for me.) |
See discussion at #34158 (comment) and below. There was some discussion on the PR, but I think we didn't yet create an issue to track this regression.
The PR introduced a regression in
reindex
when having sparse data. Based on the linked discussion, there doesn't seem to direct / easy solution (but I didn't look into it again). So we might want to revert the PR for 1.1 until we figure out a correct solution.cc @TomAugspurger
The text was updated successfully, but these errors were encountered: