Data

Hopkins

aftercovid.data.download_hopkins_data(kind='deaths', country='France')[source]

Downloads data from CSSE Johns Hopkins for a particular country.

Parameters
  • kind‘deaths’, ‘confirmed’ or ‘recovered’

  • country‘France’, ‘UK’, …

Returns

dataframe

<<<

from aftercovid.data import download_hopkins_data
df = download_hopkins_data()
print(df.tail())

>>>

              deaths
    10/15/21  114921
    10/16/21  114936
    10/17/21  114941
    10/18/21  114987
    10/19/21  115001
aftercovid.data.extract_hopkins_data(kinds=('deaths', 'confirmed', 'recovered'), country='France', delay=21, raw=False)[source]

Downloads data from CSSE Johns Hopkins and infers the number of current positive cases in a very simple way.

Parameters
  • kinds – series to extracts, by default (‘deaths’, ‘confirmed’, ‘recovered’)

  • country‘France’, ‘UK’, …

  • delay – the function assumes after 21 days, a confirmed case moves is not positive anymore

  • raw – if True, returns the raw data as well

Returns

dataframe

<<<

from aftercovid.data import extract_hopkins_data
df = extract_hopkins_data()
print(df.tail())

>>>

              deaths  confirmed  recovered  infected        safe
    10/15/21  114921    6905628    6702582     88125  60094372.0
    10/16/21  114936    6910527    6707798     87793  60089473.0
    10/17/21  114941    6914305    6712490     86874  60085695.0
    10/18/21  114987    6915362    6713061     87314  60084638.0
    10/19/21  115001    6920457    6719631     85825  60079543.0

INSEE

aftercovid.data.data_covid_france_departments_hospitals(cache='covid_france_hosp', metropole=False)[source]

Retrieves data from Données hospitalières relatives à l’épidémie de COVID-19.

Parameters
  • cache – cache name

  • metropole – only for the metropole

Returns

dataframe

aftercovid.data.data_france_departments(cache='dep_france', metropole=False)[source]

Retrieves data from Contours géographiques des départements.

Parameters
  • metropole – only for the metropole

  • cache – cache name

Returns

geodataframe

Temperatures

aftercovid.data.temperatures()

Loads data about temperatures.