@aggregate(_("<STR_LIT>"))<EOL>def aggregate_avg(items, col):
try:<EOL><INDENT>return aggregate_sum(items, col) / aggregate_count(items, col)<EOL><DEDENT>except Exception:<EOL><INDENT>log.warning(c.LOGMSG_WAR_DBI_AVG_ZERODIV)<EOL>return <NUM_LIT:0.0><EOL><DEDENT>
Function to use on Group by Charts.
accepts a list and returns the average of the list's items