Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frizensami/bloodstock_analysis
Companion code for post at https://sriramsami.com/bloodstocks
https://github.com/frizensami/bloodstock_analysis
Last synced: 27 days ago
JSON representation
Companion code for post at https://sriramsami.com/bloodstocks
- Host: GitHub
- URL: https://github.com/frizensami/bloodstock_analysis
- Owner: frizensami
- Created: 2022-01-20T06:22:11.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-06T05:44:09.000Z (about 1 year ago)
- Last Synced: 2023-10-06T06:29:58.434Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blood Stock Analysis
This repository accompanies the analysis of Singapore's blood stock levels at https://sriramsami.com/bloodstocks.
Note: This is definitely not the most efficient way to analyze the data (one network call per commit).
## Pre-requisites
1. You'll need `python 3+` and `git`
1. Install python packages, either (a) `conda env create -f environment.yml` or (b) `pip install pandas seaborn matplotlib PyGithub`
1. Clone this repository.## Downloading and analyzing the data
1. Get a GitHub personal access token from https://github.com/settings/tokens/new. The token doesn't need any specific permissions.
1. Run `TOKEN= python3 retrieve.py`. This will download the data to the `data/` subfolder. It'll take a few minutes. PRs are welcome to do this sanely (download the repo oneshot and extract the commits offline)
1. When the data is downloaded, run `python3 analyze.py`. This should display the overall graph for blood stocks over time.