MCPcopy Index your code
hub / github.com/tortoise/tortoise-orm / Avg

Class Avg

tortoise/functions.py:130–138  ·  view source on GitHub ↗

Returns average (mean) of all values in the column. :samp:`Avg("{FIELD_NAME}")`

Source from the content-addressed store, hash-verified

128
129
130class Avg(Aggregate):
131 """
132 Returns average (mean) of all values in the column.
133
134 :samp:`Avg("{FIELD_NAME}")`
135 """
136
137 database_func = functions.Avg
138 populate_field_object = True

Calls

no outgoing calls