Skip to content

Commit 55636e6

Browse files
authored
CLN: Remove GroupByError exception (#32952)
1 parent 145a414 commit 55636e6

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

pandas/core/base.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,11 @@ def __setattr__(self, key: str, value):
123123
object.__setattr__(self, key, value)
124124

125125

126-
class GroupByError(Exception):
126+
class DataError(Exception):
127127
pass
128128

129129

130-
class DataError(GroupByError):
131-
pass
132-
133-
134-
class SpecificationError(GroupByError):
130+
class SpecificationError(Exception):
135131
pass
136132

137133

@@ -372,7 +368,7 @@ def _agg_1dim(name, how, subset=None):
372368
)
373369
return colg.aggregate(how)
374370

375-
def _agg_2dim(name, how):
371+
def _agg_2dim(how):
376372
"""
377373
aggregate a 2-dim with how
378374
"""

0 commit comments

Comments
 (0)