Skip to content

Commit f8f1166

Browse files
committed
pre-commit
1 parent 90f264f commit f8f1166

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/core/apply.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,16 +303,16 @@ def apply_raw_false(
303303
@staticmethod
304304
def validate_values_for_numba(obj: Series | DataFrame) -> None:
305305
from pandas import Series
306+
306307
if isinstance(obj, Series):
307308
if not is_numeric_dtype(obj.dtype):
308309
raise ValueError(
309-
f"Series must have a numeric dtype. "
310-
f"Found '{dtype}' instead"
310+
f"Series must have a numeric dtype. Found '{obj.dtype}' instead"
311311
)
312312
if is_extension_array_dtype(obj.dtype):
313313
raise ValueError(
314-
f"Series is backed by an extension array, "
315-
f"which is not supported by the numba engine."
314+
"Series is backed by an extension array, "
315+
"which is not supported by the numba engine."
316316
)
317317
else:
318318
for colname, dtype in obj.dtypes.items():

0 commit comments

Comments
 (0)