Overview

From the Unified Crime Reporting Statistics and under the collaboration of the U.S. Department of Justice and the Federal Bureau of Investigation information crime statistics are available for public review. The following data set has information on the crime rates and totals for states across the United States for a wide range of years. The crime reports are divided into two main categories: property and violent crime. Property crime refers to burglary, larceny, and motor related crime while violent crime refers to assault, murder, rape, and robbery.

http://www.ucrdatatool.gov/Search/Crime/Local/JurisbyJurisStepTwo.cfm

Explore Structure




Index Type Example Value
0 dict { }
... ... ...
Key Type Example Value Comment
"Violent" dict { }
"Property" dict { }
Key Type Example Value Comment
"State" str "Alabama" The long name of the state that this report was made for.
"Data" dict { }
"Year" int 1960 The year that this report was made in.
Key Type Example Value Comment
"Violent" dict { }
"Property" dict { }
Key Type Example Value Comment
"All" int 6097 This property reflects all of the Violent crimes, including assaults, murders, rapes, and robberies.
"Murder" int 406 This property reflects the number of crimes where someone committed the unlawful killing of another human being without justification.
"Rape" int 281 This property reflects the number of crimes where someone committed rape. The FBI UCR definition of rape, before 2013, is the carnal knowledge of a female forcibly and against her will.
"Robbery" int 898 This property reflects the number of crimes where someone took or attempted to take anything of value by force or threat of force or by putting the victim in fear.
"Assault" int 4512 This property reflects the number of crimes where someone made an attempt to initiate harmful or offensive contact with a person, or made a threat to do so.
Key Type Example Value Comment
"Burglary" float 355.9 Rates are the number of reported offenses per 100,000 population. This property reflects the number of burglaries, or entry into a building illegally with intent to commit a crime, especially theft.
"Larceny" float 592.1 Rates are the number of reported offenses per 100,000 population. This property reflects the number of burglaries, or theft of personal property.
"All" float 1035.4 Rates are the number of reported offenses per 100,000 population. This property reflects all of the Property-related crimes, including burglaries, larcenies, and motor crimes.
"Motor" float 87.3 Rates are the number of reported offenses per 100,000 population. This property reflects the number of crimes where a motor vehicle was stolen.
Key Type Example Value Comment
"Population" int 3266740 The number of people living in this state at the time the report was created.
"Rates" dict { }
"Totals" dict { }
Key Type Example Value Comment
"Burglary" int 11626 This property reflects the number of burglaries, or entry into a building illegally with intent to commit a crime, especially theft.
"Larceny" int 19344 This property reflects the number of burglaries, or theft of personal property.
"All" int 33823 This property reflects all of the Property-related crimes, including burglaries, larcenies, and motor crimes.
"Motor" int 2853 This property reflects the number of crimes where a motor vehicle was stolen.
Key Type Example Value Comment
"All" float 186.6 Rates are the number of reported offenses per 100,000 population. This property reflects all of the Violent crimes, including assaults, murders, rapes, and robberies.
"Murder" float 12.4 Rates are the number of reported offenses per 100,000 population. This property reflects the number of crimes where someone committed the unlawful killing of another human being without justification.
"Rape" float 8.6 Rates are the number of reported offenses per 100,000 population. This property reflects the number of crimes where someone committed rape. The FBI UCR definition of rape, before 2013, is the carnal knowledge of a female forcibly and against her will.
"Robbery" float 27.5 Rates are the number of reported offenses per 100,000 population. This property reflects the number of crimes where someone took or attempted to take anything of value by force or threat of force or by putting the victim in fear.
"Assault" float 138.1 Rates are the number of reported offenses per 100,000 population. This property reflects the number of crimes where someone made an attempt to initiate harmful or offensive contact with a person, or made a threat to do so.

Downloads

Download all of the following files.

Usage

This library has 3 functions you can use.
import state_crime
list_of_report = state_crime.get_all_crimes()
list_of_report = state_crime.get_crime_by_state("Alabama")
list_of_report = state_crime.get_crime_by_year(1984)
Additionally, some of the functions can return a sample of the Big Data using an extra argument. If you use this sampled Big Data, it may be much faster. When you are sure your code is correct, you can remove the argument to use the full dataset.
import state_crime
# These may be slow!
list_of_report = state_crime.get_all_crimes(test=True)
list_of_report = state_crime.get_crime_by_state("Alabama", test=True)
list_of_report = state_crime.get_crime_by_year(1984, test=True)

Documentation

 state_crime.get_all_crimes(test=False)

Gets a list of all the crime reports in the database.

 state_crime.get_crime_by_state(department, test=False)

Given the name of a state, returns all the crime reports for that state in the database.

 state_crime.get_crime_by_year(year, test=False)

Given a year, returns all the crime reports for that year in the database.