-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
CLN: assorted #48385
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
CLN: assorted #48385
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1916,7 +1916,7 @@ def _drop_labels_or_levels(self, keys, axis: int = 0): | |
# Perform copy upfront and then use inplace operations below. | ||
# This ensures that we always perform exactly one copy. | ||
# ``copy`` and/or ``inplace`` options could be added in the future. | ||
dropped = self.copy() | ||
dropped = self.copy(deep=False) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just trying to be explicit with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this improves perf by avoiding making an actual copy. safe since this method is private |
||
|
||
if axis == 0: | ||
# Handle dropping index levels | ||
|
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.
Confused why the default value for
offset
got dropped?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.
bc this is never called without passing offset (outside tests, which this changes)