

@aggregate(_('Avg. of'))
def aggregate_avg(items, col):
    "\n        Function to use on Group by Charts.\n        accepts a list and returns the average of the list's items\n    "
    try:
        return (aggregate_sum(items, col) / aggregate_count(items, col))
    except:
        log.warning(c.LOGMSG_WAR_DBI_AVG_ZERODIV)
        return 0.0

dataset/ETHPy150Open dpgaspar/Flask-AppBuilder/flask_appbuilder/models/group.py aggregate_avg/original