-
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
Remove internal columns usage #10315
Remove internal columns usage #10315
Conversation
Codecov Report
@@ Coverage Diff @@
## branch-22.04 #10315 +/- ##
================================================
- Coverage 10.62% 10.62% -0.01%
================================================
Files 122 122
Lines 20961 20973 +12
================================================
Hits 2228 2228
- Misses 18733 18745 +12
Continue to review full report at Codecov.
|
… for dataframe,series,index,and multiindex tests to pass.
3cb216e
to
102ccef
Compare
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.
Can't spot any major issues. Do you think _set_column_names_like
can be added to an overload of _from_columns_like_self
in dataframe?
That's definitely a good idea for a follow-up PR, but I think it's out of scope for this one. |
@gpucibot merge |
A quick fix to set column names in the `_from_columns_like_self` factory. Since dataframe column names are slightly more complex than simple Frame, this fix makes sure column name metadata (such as multi level names) are properly copied to the result dataframe. Addresses this comment: #10315 (comment) Authors: - Michael Wang (https://github.com/isVoid) Approvers: - GALI PREM SAGAR (https://github.com/galipremsagar) URL: #10400
This PR uses the feature introduced in #10263 to remove the usage of DataFrame.columns where possible.
Currently this removes a large number of internal uses but not all of them to verify that CI does indeed fail as expected since some changes were made on #10263 after the last test of CI by reviewer request. I will convert this from a draft once I see CI fail and once all the necessary changes have been made for tests to pass.