Sample Tabular Data: Fatal Collisions

Source Notebook

Information on drivers involved in fatal car collisions (per billion miles)

Details

Information on drivers involved in fatal car collisions (per billion miles) in each state. Average insurance premiums and insurance losses for all collisions in each state.

Examples

Basic Examples (3) 

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

Dimensions:

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

Column keys and descriptions:

In[3]:=
ResourceData[\!\(\*
TagBox["\"\<Sample Tabular Data: Fatal Collisions\>\"",
#& ,
BoxID -> "ResourceTag-Sample Tabular Data: Fatal Collisions-Input",
AutoDelete->True]\), "ColumnKeys"]
Out[3]=
In[4]:=
ResourceData[\!\(\*
TagBox["\"\<Sample Tabular Data: Fatal Collisions\>\"",
#& ,
BoxID -> "ResourceTag-Sample Tabular Data: Fatal Collisions-Input",
AutoDelete->True]\), "ColumnDescriptions"] // Dataset
Out[4]=

Column types:

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

Scope & Additional Elements (3) 

Find the states with most drivers involved in fatal collisions:

In[6]:=
ReverseSortBy[ConstructColumns[ResourceData[\!\(\*
TagBox["\"\<Sample Tabular Data: Fatal Collisions\>\"",
#& ,
BoxID -> "ResourceTag-Sample Tabular Data: Fatal Collisions-Input",
AutoDelete->True]\)], {"state", "total"}], "total"]
Out[6]=

Convert state abbreviation into Entity object:

In[7]:=
TransformColumns[%, "state" -> Function[Interpreter["USState"][#state]]]
Out[7]=

Visualize on a map:

In[8]:=
GeoRegionValuePlot[FromTabular[%, "Matrix"]]
Out[8]=

Gosia Konwerska, "Sample Tabular Data: Fatal Collisions" from the Wolfram Data Repository (2024)  

License Information

CC0: Public Domain

Data Resource History

Source Metadata

See Also

Publisher Information