diff --git a/modin/pandas/groupby.py b/modin/pandas/groupby.py index d18e1509c70..48df124c32b 100644 --- a/modin/pandas/groupby.py +++ b/modin/pandas/groupby.py @@ -1194,9 +1194,21 @@ def groupby_on_multiple_columns(df, *args, **kwargs): @_inherit_docstrings(pandas.core.groupby.SeriesGroupBy) class SeriesGroupBy(SeriesGroupByCompat, DataFrameGroupBy): - def __init__( - self, + self, + df, + by, + axis, + level, + as_index, + sort, + group_keys, + squeeze, + idx_name, + drop, + **kwargs, + ): + super(SeriesGroupBy, self).__init__( df, by, axis, @@ -1208,8 +1220,7 @@ def __init__( idx_name, drop, **kwargs, - ): - super(SeriesGroupBy, self).__init__(df, by, axis, level, as_index, sort, group_keys, squeeze, idx_name, drop, **kwargs) + ) self._squeeze = True @property