Skip to content

Commit 6b23fb8

Browse files
dsaxtonjreback
authored andcommitted
Clean groupby error message (#28324)
1 parent 0a00ebe commit 6b23fb8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/core/groupby/ops.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,9 +463,7 @@ def _cython_operation(self, kind, values, how, axis, min_count=-1, **kwargs):
463463
# categoricals are only 1d, so we
464464
# are not setup for dim transforming
465465
if is_categorical_dtype(values) or is_sparse(values):
466-
raise NotImplementedError(
467-
"{} are not support in cython ops".format(values.dtype)
468-
)
466+
raise NotImplementedError("{} dtype not supported".format(values.dtype))
469467
elif is_datetime64_any_dtype(values):
470468
if how in ["add", "prod", "cumsum", "cumprod"]:
471469
raise NotImplementedError(

0 commit comments

Comments
 (0)