Skip to content

Commit dedea4a

Browse files
committed
Add error message including expected string to properly fallback
1 parent 0a4cc39 commit dedea4a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/core/groupby/ops.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,9 @@ def _ea_wrap_cython_operation(
540540
result = type(orig_values)._from_sequence(res_values)
541541
return result
542542

543-
raise NotImplementedError(values.dtype)
543+
raise NotImplementedError(
544+
f"function is not implemented for this dtype: {values.dtype}"
545+
)
544546

545547
@final
546548
def _cython_operation(

0 commit comments

Comments
 (0)