Missing 'Median' Aggregate Function in Django?

前端 未结 6 1040
孤城傲影
孤城傲影 2021-01-04 13:09

The Development version of Django has aggregate functions like Avg, Count, Max, Min, StdDev, Sum, and Variance (link text). Is there a reason Median is missing from the list

6条回答
  •  Happy的楠姐
    2021-01-04 13:26

    Because median isn't a SQL aggregate. See, for example, the list of PostgreSQL aggregate functions and the list of MySQL aggregate functions.

提交回复
热议问题