Skip to content

Commit 043c667

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0660bc2 commit 043c667

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

pandas/core/computation/expressions.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,11 @@ def where(cond, left_op, right_op, use_numexpr: bool = True):
257257
Whether to try to use numexpr.
258258
"""
259259
assert _where is not None
260-
return _where(cond, left_op, right_op) if use_numexpr else _where_standard(cond, left_op, right_op)
260+
return (
261+
_where(cond, left_op, right_op)
262+
if use_numexpr
263+
else _where_standard(cond, left_op, right_op)
264+
)
261265

262266

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

pandas/core/computation/pytables.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,9 @@ def stringify(value):
274274
# string quoting
275275
return TermValue(conv_val, stringify(conv_val), "string")
276276
else:
277-
raise TypeError(f"Cannot compare {conv_val} of type {type(conv_val)} to {kind} column")
277+
raise TypeError(
278+
f"Cannot compare {conv_val} of type {type(conv_val)} to {kind} column"
279+
)
278280

279281
def convert_values(self) -> None:
280282
pass

0 commit comments

Comments
 (0)