Git Product home page Git Product logo

mortality_module's Introduction

Project

This is a standalone package created to simulate changes in the size of a given population.

Project Structure

See PyPa sample project .

Code Style

Code style: black

Data

All data provided is publicly available, see:

Population Pyramid

Mortality Rates

UK Life Expectancies (12 Jan 2022) (cohorts):

The data is truncated so that everyone who has their age going beyond 100 has 100% mortality rate.

Birth Rates

  • England & Wales live births by Nomis & ONS (separately) 2021
  • Scotland Birth Time Series Data 2021
  • Northen Ireland Birth Statistics 2021

Note that ONS provides data for residents inside England and Wales only as opposed to Nomis. However, the difference is negligible.

Also, all data is combined into a single table at the moment.

Note

Mortality rates tables require a password to get access to, this can be fixed by converting the document to *.xlsx.

mortality_module's People

Contributors

vkhodygo avatar dependabot[bot] avatar

Stargazers

Daniel Kopasker avatar

Watchers

 avatar

mortality_module's Issues

ENH: add data validation

  • check that MultiIndex is valid everywhere
  • values of the population pyramid are either uint or values are positive integers
  • values of mortality rates are in range that is positive and no more than 100_000, also must be no outliers? dtype must be float or smth
  • birth numbers are uint or positive integers

Strictly speaking, any population change must be a non-negative integer, but there is no data records like that?

ENH: employ NOMIS API instead of storing data locally

This is a task for some other day, but it'd be great to not distribute any extra files with the code.
Potential issues:

  • Network errors; store a copy of data and check for updates every time.
  • Any data update results in failed tests.
  • A lot of new code that requires support.
  • Not all data that's used here is distributed by NOMIS.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.