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.
|
isVoid
left a comment
There was a problem hiding this comment.
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.