Sample Tabular Data: US Covid

Source Notebook

Data on coronavirus cases and deaths in the United States

Details

Data on coronavirus cases and deaths in the United States per county between 2020/01/21 and 2022/05/12.

Examples

Basic Examples (3) 

In[1]:=
ResourceData[\!\(\*
TagBox["\"\<Sample Tabular Data: US Covid\>\"",
#& ,
BoxID -> "ResourceTag-Sample Tabular Data: US Covid-Input",
AutoDelete->True]\)]
Out[1]=

Data dimensions:

In[2]:=
Dimensions[ResourceData[\!\(\*
TagBox["\"\<Sample Tabular Data: US Covid\>\"",
#& ,
BoxID -> "ResourceTag-Sample Tabular Data: US Covid-Input",
AutoDelete->True]\)]]
Out[2]=

Column keys and types:

In[3]:=
ResourceData[\!\(\*
TagBox["\"\<Sample Tabular Data: US Covid\>\"",
#& ,
BoxID -> "ResourceTag-Sample Tabular Data: US Covid-Input",
AutoDelete->True]\), "ColumnKeys"]
Out[3]=
In[4]:=
ResourceData[\!\(\*
TagBox["\"\<Sample Tabular Data: US Covid\>\"",
#& ,
BoxID -> "ResourceTag-Sample Tabular Data: US Covid-Input",
AutoDelete->True]\), "ColumnTypes"]
Out[4]=

Temporal range of data:

In[5]:=
MinMax[ResourceData[\!\(\*
TagBox["\"\<Sample Tabular Data: US Covid\>\"",
#& ,
BoxID -> "ResourceTag-Sample Tabular Data: US Covid-Input",
AutoDelete->True]\)][[All, "date"]]]
Out[5]=

Scope & Additional Elements (2) 

Use FIPS (Federal Information Processing Standard) to select the data for Cook County, IL:

In[6]:=
cookIL = Select[ResourceData[\!\(\*
TagBox["\"\<Sample Tabular Data: US Covid\>\"",
#& ,
BoxID -> "ResourceTag-Sample Tabular Data: US Covid-Input",
AutoDelete->True]\)], Function[SameQ[#fips, "17031"]]]
Out[6]=

Create a TimeSeries of cases and plot:

In[7]:=
ts = FromTabular[cookIL, "TimeSeries", <|"TimeColumn" -> "date", "ValueColumns" -> "cases"|>]
Out[7]=
In[8]:=
DateListPlot[ts]
Out[8]=

Gosia Konwerska, "Sample Tabular Data: US Covid" from the Wolfram Data Repository (2024)  

Data Resource History

Source Metadata

See Also

Publisher Information