db.models.StdDev

class StdDev(expression, sample=False, **extra) [source]

Returns the standard deviation of the data in the provided expression.

  • Default alias: <field>__stddev
  • Return type: float

Has one optional argument:

sample

By default, StdDev returns the population standard deviation. However, if sample=True, the return value will be the sample standard deviation.

SQLite

SQLite doesn’t provide StdDev 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:23
Comments
Leave a Comment

Please login to continue.