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
    3/5/23  161407
    3/6/23  161450
    3/7/23  161474
    3/8/23  161501
    3/9/23  161512
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
    3/5/23  161407   38591184   38356208     73569  28408816.0
    3/6/23  161450   38599330   38361829     76051  28400670.0
    3/7/23  161474   38606393   38366780     78139  28393607.0
    3/8/23  161501   38612201   38370717     79983  28387799.0
    3/9/23  161512   38618509   38374711     82286  28381491.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.