Skip to content

Instantly share code, notes, and snippets.

View xenatisch's full-sized avatar

Pouria Hadjibagheri xenatisch

View GitHub Profile
@xenatisch
xenatisch / covid19_headline_charts.py
Created May 20, 2021 10:27
Charts (waffle and line) for the UK COVID-19 Dashboard homepage
#!/usr/bin python3
# Imports
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Python:
from typing import Dict, Callable, Union
from operator import itemgetter
# 3rd party:
from plotly import graph_objects as go
@xenatisch
xenatisch / rolling_change.py
Created April 9, 2021 09:32
Rolling change calculations - UK Coronavirus Dashboard
#!/usr/bin python3
# Imports
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Python:
import logging
# 3rd party:
from pandas import DataFrame, to_datetime
from numpy import NaN
@xenatisch
xenatisch / population_test.ipynb
Last active January 16, 2021 18:17
Reproduction of population from incidence rates
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@xenatisch
xenatisch / covid19-dash-APIv2.ipynb
Created January 7, 2021 19:31
UK COVID19 Dashboard - APIv2 sample
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.