Opened 7 years ago
Closed 7 years ago
#30056 closed New feature (fixed)
Add SQLite support for StdDev() and Variance()
| Reported by: | Nick Pope | Owned by: | Nick Pope |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | dev |
| Severity: | Normal | Keywords: | sqlite, stddev, variance, statistics |
| Cc: | Mariusz Felisiak | Triage Stage: | Accepted |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
StdDev() and Variance() are currently supported for SpatiaLite, but not SQLite. Django's documentation highlights that there is an extension module available that provides support, but there are problems with this suggestion:
- This extension module is not provided compiled and only implements
STDDEVandVARIANCE. - Django uses
STDDEV_POPandSTDDEV_SAMPforStdDev();VAR_POPandVAR_SAMPforVariance()- so they wouldn't work anyway.
As an alternative, we can make use of the statistics module added to the standard library in Python 3.4.
Change History (4)
comment:1 by , 7 years ago
| Has patch: | set |
|---|---|
| Owner: | changed from to |
| Status: | new → assigned |
| Version: | 2.1 → master |
comment:2 by , 7 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:3 by , 7 years ago
| Cc: | added |
|---|
Note:
See TracTickets
for help on using tickets.
PR