-
Notifications
You must be signed in to change notification settings - Fork 358
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
Implement Index.droplevel & MultiIndex.droplevel #1340
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1340 +/- ##
==========================================
- Coverage 95.24% 95.16% -0.09%
==========================================
Files 34 34
Lines 7489 7506 +17
==========================================
+ Hits 7133 7143 +10
- Misses 356 363 +7
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.
Otherwise, LGTM.
databricks/koalas/indexes.py
Outdated
index_map = list(self._internal.index_map.items()) | ||
index_map = OrderedDict(index_map[c] for c in range(0, nlevels) if c not in int_level) | ||
sdf = self._internal.spark_frame | ||
sdf = sdf.select(self._internal.index_spark_columns) |
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.
We can also drop some from self._internal.index_spark_columns
?
bf698b1
to
383b141
Compare
This PR implements
droplevel
.Takes over #1091