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(
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 ():
You can’t perform that action at this time.
0 commit comments