A package to produce stats from the ukrdc database to be displayed on the dashboard
Project description
Dashboard Statistics Library
Library for generating statistics for the UKRDC dashboard
Installation
pip install ukrdc-stats
Basic usage
Statistics calculations require an SQLAlchemy session with a connection to the UKRDC3 database.
In this example, we use ukrdc3_session
, and calculate for the unit code "TEST_UNIT".
from ukrdc_stats import DemographicStatsCalculator
demographics = DemographicStatsCalculator(ukrdc3, "TEST_UNIT").extract_stats()
Each calculator returns multiple stats from the same cohort, and each of those includes basic metadata required for rendering and plotting the data.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ukrdc_stats-1.1.1.tar.gz
(15.8 kB
view hashes)
Built Distribution
Close
Hashes for ukrdc_stats-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e7077665deb15519ed9ab5909ce885c59587b83f1480fe93fb4879a526280bf |
|
MD5 | 5d525ea1be18233d2a5a6bf01f0c12c5 |
|
BLAKE2b-256 | 5a1f08a944548f52fb433f17f8880843c71ec083d38f8810ad587578ee8c355b |