Wolfram Research

Coronavirus COVID-19 Pandemic Government Measures

Measures taken by governments from different countries to fight the coronavirus COVID-19 pandemic caused by the SARS-CoV-2

Details

ID ACAPS progressive number of entries
Country country as entity
UNCode country ISO 3166-1 alpha-3 code
AdministrativeDivision administrative division
PCode PCode
Region country class
Continent continent
Category government measure category
Measure government measure category detail
TargetedPopulationGroup True if a population group was targeted (boolean)
Comments comments
NonCompliance measure non compliance consequence
ImplementationDate date when the measure was implemented
Source source
SourceType type of source
Link link to source
EntryDate date when entry was added
AlternativeSource alternative source
The current dataset uses one single source and includes measures taken by 188 countries.
Four different categories are currently available including many measures for each one.
The original source didn't include the Continent property. I computed that property to improve the Region property.
Measure and Comments are expected to be parsed and processed to extract more computable properties in the future.

Examples

Basic Examples

In[1]:=
ResourceData[
ResourceObject["Coronavirus COVID-19 Pandemic Government Measures"]]
Out[1]=

Visualizations

Visualize the different source types:

In[2]:=
PieChart[Function[u, Labeled[u[[2]], u[[1]], "VerticalCallout"]] /@ Tally[Lookup[Normal@ResourceData[
ResourceObject["Coronavirus COVID-19 Pandemic Government Measures"]], "SourceType"]]]
Out[2]=

See the temporal coverage of the provided data:

In[3]:=
TimelinePlot[{DateInterval[
   MinMax[DeleteMissing@Lookup[Normal@ResourceData[
ResourceObject["Coronavirus COVID-19 Pandemic Government Measures"]], "ImplementationDate"]]]}]
Out[3]=

Analysis

See the different categories of measures taken by governments:

In[4]:=
Dataset[<|"Category" -> #|> & /@ DeleteDuplicates@Lookup[Normal@ResourceData[
ResourceObject["Coronavirus COVID-19 Pandemic Government Measures"]], "Category"]]
Out[4]=

Categories gathered by country:

In[5]:=
gatheredData = GatherBy[DeleteDuplicates@Lookup[Normal@ResourceData[
ResourceObject[
       "Coronavirus COVID-19 Pandemic Government Measures"]], \
{"Country", "Category"}], Last];
In[6]:=
Dataset[Function[
   u, <|"Category" -> u[[1, 2]], "Countries" -> u[[All, 1]]|>] /@ gatheredData]
Out[6]=

Countries under lockdown:

In[7]:=
Cases[Lookup[Normal@ResourceData[
ResourceObject[
     "Coronavirus COVID-19 Pandemic Government Measures"]], \
{"Country", "Category"}], {_, "Lockdown"}][[All, 1]]
Out[7]=
In[8]:=
GeoListPlot[%]
Out[8]=

Countries that implemented social distancing but not movement restrictions:

In[9]:=
Complement[gatheredData[[3]][[All, 1]], gatheredData[[4]][[All, 1]]]
Out[9]=
In[10]:=
GeoListPlot[%]
Out[10]=

See the different kinds of movement restrictions implemented by countries:

In[11]:=
Dataset[<|"Restriction" -> #|> & /@ Sort@DeleteDuplicates[Cases[Lookup[Normal@ResourceData[
ResourceObject[
         "Coronavirus COVID-19 Pandemic Government Measures"]], \
{"Category", "Measure"}], {"Movement restrictions", _}][[All, 2]]]]
Out[11]=

Countries with checkpoints:

In[12]:=
Cases[Lookup[Normal@ResourceData[
ResourceObject[
     "Coronavirus COVID-19 Pandemic Government Measures"]], \
{"Country", "Category", "Measure"}], {_, "Movement restrictions", "Checkpoints"}][[All, 1]]
Out[12]=
In[13]:=
GeoListPlot[%]
Out[13]=

Wolfram Research, "Coronavirus COVID-19 Pandemic Government Measures" from the Wolfram Data Repository (2020) 

License Information

Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International license

Data Resource History

Source Metadata

Data Downloads

Publisher Information