Code Monkey home page Code Monkey logo

county-covid-analysis's Introduction

Covid County Analysis

This git repository contains the code for covid analysis of USA counties. We have an etl script which loads data every day and an exposed api that provides details at zipcode and day level

Environment

  • Python version used is 3.7
  • Pipenv is used for python package management
  • Python Packages required our specified in Pipfile

Running Instructions -

Running ETL for current load

bash docker_start.sh etl.py or python etl.py

Running ETL for historical load

bash docker_start.sh "etl.py history" or python etl.py history

Running api

bash docker_start.sh covid_api.py or python covid_api.py

Test cases

Test Case 1 - one_to_one_mapping:

We find an exact match to county mapping and zip belongs to only one county. Observe that esitmated cases is
less than cases in counties because it is divided by number of zipcodes in the county to estimte zipcode level data

Test Case 2 - test_unsuccessfull_county_match:

We find no match to county mapping and cannot find the populatin and therefore rate is null. Zip belongs to only one county. Observe that esitmated cases is
less than cases in counties because it is divided by number of zipcodes in the county to estimte zipcode level data

Test Case 3 - no_mapping:

When we find no mapping for counties or no mapping because respective dates are missing, then estimated cases and rate values are null

Test Case 4 - multiple_counties_zip:

When we find a zip lies in multiple counties, we multiply and sum over the tot_ration to get estimated counts

county-covid-analysis's People

Contributors

sohiljain avatar

Watchers

James Cloos avatar  avatar

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.