db.models.Variance

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 documentation for instructions on obtaining and installing this extension.

doc_Django
2016-10-09 18:36:26
Comments
Leave a Comment

Please login to continue.