Skip to content

Commit 1a90869

Browse files
committed
Fix line length issues (E501)
1 parent 26f2ab9 commit 1a90869

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

pandas/core/computation/expressions.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,11 @@ def _where_numexpr(cond, left_op, right_op):
182182
if _can_use_numexpr(None, "where", left_op, right_op, "where"):
183183
result = ne.evaluate(
184184
"where(cond_value, left_value, right_value)",
185-
local_dict={"cond_value": cond, "left_value": left_op, "right_value": right_op},
185+
local_dict={
186+
"cond_value": cond,
187+
"left_value": left_op,
188+
"right_value": right_op
189+
},
186190
casting="safe",
187191
)
188192

@@ -257,7 +261,9 @@ def where(cond, left_op, right_op, use_numexpr: bool = True):
257261
Whether to try to use numexpr.
258262
"""
259263
assert _where is not None
260-
return _where(cond, left_op, right_op) if use_numexpr else _where_standard(cond, left_op, right_op)
264+
return (_where(cond, left_op, right_op)
265+
if use_numexpr
266+
else _where_standard(cond, left_op, right_op))
261267

262268

263269
def set_test_mode(v: bool = True) -> None:

0 commit comments

Comments
 (0)