class Variance(expression, sample=False, **extra) [source]
Returns the variance of the data in the provided expression.
Default alias: <field>__variance
Return type: float
Has one optional argument:
sample
By default, Variance returns the population variance. However, if sample=True, the return value will be the sample variance.
SQLite SQLite doesn’t provide Variance out of the box. An implementation is available as an extension module for SQLite. Consult the SQlite document