Skip to content

CLN: Remove incorrect check, comment, rename #27922

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

Merged
merged 10 commits into from
Aug 20, 2019
9 changes: 6 additions & 3 deletions pandas/core/ops/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,9 +730,12 @@ def wrapper(self, other, axis=None):
)

result = self._constructor(res_values, index=self.index)
# rename is needed in case res_name is None and result.name
# is not.
return finalizer(result).rename(res_name)
result = finalizer(result)

# Set the result's name after finalizer is called because finalizer
# would set it back to self.name
result.name = res_name
return result

wrapper.__name__ = op_name
return wrapper
Expand Down