Skip to content

Commit 2039cfa

Browse files
committed
Don't cactch IndexError
1 parent b69b62e commit 2039cfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/groupby/groupby.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ def _python_agg_general(self, func, *args, **kwargs):
867867
try:
868868
result, counts = self.grouper.agg_series(obj, f)
869869
output[name] = self._try_cast(result, obj, numeric_only=True)
870-
except (IndexError, TypeError):
870+
except TypeError:
871871
continue
872872

873873
if len(output) == 0:

0 commit comments

Comments
 (0)