-
-
Notifications
You must be signed in to change notification settings - Fork 18.9k
remove BlockManager.reindex #19338
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
remove BlockManager.reindex #19338
Conversation
Codecov Report
@@ Coverage Diff @@
## master #19338 +/- ##
==========================================
+ Coverage 91.57% 91.59% +0.02%
==========================================
Files 150 150
Lines 48705 48681 -24
==========================================
- Hits 44600 44590 -10
+ Misses 4105 4091 -14
Continue to review full report at Codecov.
|
data = data.reindex(index, copy=copy) | ||
elif not data.index.equals(index) or copy: | ||
# GH#19275 SingleBlockManager input should only be called | ||
# internally |
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.
If anything this would be an AssertionError. But is this code path actually hit by any tests?
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.
Nope. update This never raises in tests because the only times Series.__init__
is called with a SingleBlockManager
as the data
kwarg also has index=data.index
Because a) users shouldn't be passing SingleBlockManager
around anyway and b) if they ever did pass one and pass a non-matching it would raise because BlockManager.reindex
is broken, better to just disallow the broken case and enforce it early on, then delete the broken code.
I'm fine with raising an AssertionError.
thanks. FYI macosx builds appear to be delayed travis wide. |
git diff upstream/master -u -- "*.py" | flake8 --diff