covid mobility icon

Covid Mobility Python Library

From the CORGIS Dataset Project

By Sam Donald
Version 1.0.0, created 9/28/2022
Tags: Covid-19, social response, healthcare

Overview

Mobility analysis on how different populations are responding to the pandemic sourced from Google. A baseline day represents a normal value for that day of the week. The baseline day is the median value from the 5?week period Jan 3 � Feb 6, 2020.

https://github.com/owid/owid-datasets/tree/master/datasets/Google%20Mobility%20Trends%20(2020)

Explore Structure

Each row represents covid-report.

Index Type Example Value
0 dict { }
1 dict (same structure)
2 dict (same structure)
... ... ...
Key Type Example Value Description
"Country" str "Afghanistan" Nameof country
"Days since outbreak" int 47 Count of days passed since Covid-19 outbreak began
"Location" dict { }
Key Type Example Value Description
"Retail" float 0.0 Change in retail activity from baseline (January average)
"Grocery" float 4.0 Change in grocery activity from baseline (January average)
"Parks" float 1.0 Change in park activity from baseline (January average)
"Public transport" float 5.667 Change in public transport activity from baseline (January average)
"Workplace" float -6.333 Change in workplace activity from baseline (January average)
"Residential" float 1.333 Change in residential activity from baseline (January average)

Downloads

Download all of the following files.

  1. covid_mobility.py
  2. covid_mobility.data

Usage

import covid_mobility
report = covid_mobility.get_report()

Documentation

get_report()
Returns a list of dictionaries representing Report.