We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 615351f commit 4460f81Copy full SHA for 4460f81
pandas/core/groupby/ops.py
@@ -451,11 +451,7 @@ def _cython_operation(
451
452
# categoricals are only 1d, so we
453
# 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):
+ if is_datetime64_any_dtype(values):
459
if how in ["add", "prod", "cumsum", "cumprod"]:
460
raise NotImplementedError(
461
"datetime64 type does not support {how} operations".format(how=how)
0 commit comments