-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
CLN: remove unused try_cast kwarg from ops #23258
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
Conversation
Hello @jbrockmendel! Thanks for submitting the PR.
|
pandas/core/internals/blocks.py
Outdated
@@ -1318,7 +1318,7 @@ def shift(self, periods, axis=0, mgr=None): | |||
|
|||
return [self.make_block(new_values)] | |||
|
|||
def eval(self, func, other, errors='raise', try_cast=False, mgr=None): | |||
def eval(self, func, other, errors='raise', mgr=None): |
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.
Given recent implementation of ops.dispatch_to_series, we only ever get here with try_cast=False
, so we can remove the kwarg altogether.
Travis failure is in feather |
this is fine (I think you have these changes in another PR as well), but happy to merge this. ping on green. |
Yah, this one goes a little further in getting rid of the kwarg for Panel and is generally much more focused. The other one is a bit all over the place, largely because of an accidental push of unrelated test cleanup. |
Codecov Report
@@ Coverage Diff @@
## master #23258 +/- ##
=========================================
Coverage ? 92.22%
=========================================
Files ? 169
Lines ? 50909
Branches ? 0
=========================================
Hits ? 46952
Misses ? 3957
Partials ? 0
Continue to review full report at Codecov.
|
thanks! |
git diff upstream/master -u -- "*.py" | flake8 --diff