def __init__(
        self, column_name, name, aggregate_func=aggregate_count, aggregate_col=""
    ):
        """
        Constructor.

        :param column_name:
            Model field name
        :param name:
            The group by name

        """
        self.column_name = column_name
        self.name = name
        self.aggregate_func = aggregate_func
        self.aggregate_col = aggregate_col

        Constructor.

        :param column_name:
            Model field name
        :param name:
            The group by name

        
flask_appbuilder/models/group.py