We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a1375a commit 794788dCopy full SHA for 794788d
pandas/core/groupby/groupby.py
@@ -2514,7 +2514,7 @@ def _get_cythonized_result(
2514
key = base.OutputKey(label=name, position=idx)
2515
output[key] = result
2516
2517
- # Check error_msg so we don't raise on an frame/series with no rows
+ # error_msg is "" on an frame/series with no rows or columns
2518
if len(output) == 0 and error_msg != "":
2519
raise TypeError(error_msg)
2520
0 commit comments