modin/core/dataframe/algebra/default2pandas/groupby.py
def build_groupby(cls, func):
        """
        Build function that groups DataFrame and applies aggregation function to the every group.

        Parameters
        ----------
        func : callable or str
            Default aggregation function. If aggregation function is not specified
            via groupby arguments, then `func` function is used.

        Returns
        -------
        callable
            Function that takes pandas DataFrame and does GroupBy aggregation.
        """
        if cls.is_aggregate(func):
            return cls.build_aggregate_method(func)
        return cls.build_groupby_reduce_method(func)

        Build function that groups DataFrame and applies aggregation function to the every group.

        Parameters
        ----------
        func : callable or str
            Default aggregation function. If aggregation function is not specified
            via groupby arguments, then `func` function is used.

        Returns
        -------
        callable
            Function that takes pandas DataFrame and does GroupBy aggregation.
        
Build function that groups DataFrame and applies aggregation function to the every group.
Parameters

func : callable or str
Default aggregation function. If aggregation function is not specified
via groupby arguments, then `func` function is used.

Returns

callable
Function that takes pandas DataFrame and does GroupBy aggregation.
Build function that groups DataFrame and applies aggregation function to the every group . Parameters func : callable or str Default aggregation function . If aggregation function is not specified via groupby arguments then ` func ` function is used . Returns callable Function that takes pandas DataFrame and does GroupBy aggregation .
def build_groupby(cls, func):
        if cls.is_aggregate(func):
            return cls.build_aggregate_method(func)
        return cls.build_groupby_reduce_method(func)
def build_groupby ( cls , func ) : if cls . is_aggregate ( func ) : return cls . build_aggregate_method ( func ) return cls . build_groupby_reduce_method ( func )
Build function that groups DataFrame and applies aggregation function to the every group.
Build function that groups DataFrame and applies aggregation function to the every group .
"""
        Build function that groups DataFrame and applies aggregation function to the every group.

        Parameters
        ----------
        func : callable or str
            Default aggregation function. If aggregation function is not specified
            via groupby arguments, then `func` function is used.

        Returns
        -------
        callable
            Function that takes pandas DataFrame and does GroupBy aggregation.
        """
cls
func