File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -303,16 +303,16 @@ def apply_raw_false(
303
303
@staticmethod
304
304
def validate_values_for_numba (obj : Series | DataFrame ) -> None :
305
305
from pandas import Series
306
+
306
307
if isinstance (obj , Series ):
307
308
if not is_numeric_dtype (obj .dtype ):
308
309
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"
311
311
)
312
312
if is_extension_array_dtype (obj .dtype ):
313
313
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."
316
316
)
317
317
else :
318
318
for colname , dtype in obj .dtypes .items ():
You can’t perform that action at this time.
0 commit comments