-
-
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
Conversation
end: Timestamp | None, | ||
periods: int | None, | ||
offset: BaseOffset, | ||
): |
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)
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
Just trying to be explicit with copy
instead of relying on signature defaults?
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.
this improves perf by avoiding making an actual copy. safe since this method is private
|
mypy fixed, just an unrelated timeout remaining |
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.
Looks okay to me cc @gfyoung if you have any additional comments.
Thanks @jbrockmendel |
* CLN: assorted * mypy fixup
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.