-
Notifications
You must be signed in to change notification settings - Fork 915
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
Move more methods into SingleColumnFrame #8253
Move more methods into SingleColumnFrame #8253
Conversation
…e op for SingleColumnFrame.
Codecov Report
@@ Coverage Diff @@
## branch-21.06 #8253 +/- ##
===============================================
Coverage ? 82.88%
===============================================
Files ? 105
Lines ? 17910
Branches ? 0
===============================================
Hits ? 14845
Misses ? 3065
Partials ? 0 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.
LGTM :)
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 in general. In addition I would love to have more insight into how MultiIndex
is (completely) shadowed away from methods in SingleColumnFrame
. Could you elaborate if you don't mind?
The short answer is that I'm not doing anything, because nothing has been done in the past to fix this. The longer answer is that I have a plan for how to resolve this issue, but it will take some more careful refactoring. In the long term, I think we should aim for a structure that looks more like this:
This inheritance would resolve your concerns. However, before we can do that we need to make it a lot easier to inherit from Index types, which is a huge pain right now because of the way we need to override |
@gpucibot merge |
Continuation of #8115 and #8166. Moves more logic out of the Index/Series classes into the new common parent class to reduce code duplication and ensure feature parity.