I\'m trying to return a totals/averages row from my dataset which contains the SUM of certain fields and the AVG of others.
I could do this in SQL via:
S
ttention = Attention_scores.query.with_entities(func.avg(Attention_scores.score)).filter(classroom_number == classroom_number).all()
i tried like this . it gave the correct average