8000 [PERF] use numexpr in dispatch_to_series by jbrockmendel · Pull Request #22284 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

[PERF] use numexpr in dispatch_to_series #22284

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 7 commits into from
Sep 8, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' of https://github.com/pandas-dev/pandas into di…
…spatch2
  • Loading branch information
jbrockmendel committed Sep 5, 2018
commit 13016e72ad01df10d65b85a7a5befb050e5702b4
4 changes: 2 additions & 2 deletions pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -4832,8 +4832,8 @@ def _arith_op(left, right):
return ops.dispatch_to_series(this, other, _arith_op)
else:
result = _arith_op(this.values, other.values)
return self._constructor(result, index=new_index,
columns=new_columns,
return self._constructor(result,
index=new_index, columns=new_columns,
copy=False)

def _combine_match_index(self, other, func, level=None):
Expand Down
1 change: 1 addition & 0 deletions pandas/core/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -1641,6 +1641,7 @@ def dispatch_to_series(left, right, func, str_rep=None):
# with non-unique columns.
import pandas.core.computation.expressions as expressions

right = lib.item_from_zerodim(right)
if lib.is_scalar(right):

def column_op(a, b):
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0