modin/core/dataframe/algebra/default2pandas/groupby.py
def try_cast_series(df):
            """Cast one-column frame to Series."""
            if isinstance(df, pandas.DataFrame):
                df = df.squeeze(axis=1)
            if not isinstance(df, pandas.Series):
                return df
            if df.name == "__reduced__":
                df.name = None
            return df
Cast one-column frame to Series.
Cast one-column frame to Series.
Cast one - column frame to Series .
def try_cast_series(df):
            if isinstance(df, pandas.DataFrame):
                df = df.squeeze(axis=1)
            if not isinstance(df, pandas.Series):
                return df
            if df.name == "__reduced__":
                df.name = None
            return df
def try_cast_series ( df ) : if isinstance ( df , pandas . DataFrame ) : df = df . squeeze ( axis = 1 ) if not isinstance ( df , pandas . Series ) : return df if df . name == "__reduced__" : df . name = None return df
Cast one-column frame to Series.
Cast one - column frame to Series .
"""Cast one-column frame to Series."""
df