Skip to content

Commit 4460f81

Browse files
committed
Removed raising on Categorical (???)
1 parent 615351f commit 4460f81

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pandas/core/groupby/ops.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -451,11 +451,7 @@ def _cython_operation(
451451

452452
# categoricals are only 1d, so we
453453
# are not setup for dim transforming
454-
if is_categorical_dtype(values) or is_sparse(values):
455-
raise NotImplementedError(
456-
"{dtype} dtype not supported".format(dtype=values.dtype)
457-
)
458-
elif is_datetime64_any_dtype(values):
454+
if is_datetime64_any_dtype(values):
459455
if how in ["add", "prod", "cumsum", "cumprod"]:
460456
raise NotImplementedError(
461457
"datetime64 type does not support {how} operations".format(how=how)

0 commit comments

Comments
 (0)