Number of crimes in Malaysia by district, crime category, and type of crime.
0 viewsΒ·0 downloads
This dataset is tabulated from transactional report-level data collected by the Police Reporting System administered by the Royal Malaysian Police. Most importantly, it shows the number of actual crimes (i.e. where a conviction has already occurred) rather than the number of reported crimes, which may include false reports. This dataset can also be used in analyses of sexual crime towards women, because all victims of rape as defined by the laws of Malaysia are female (i.e. there is no need to provide a separate dataset with disaggregation by sex).
For a deeper understanding of the methodology and associated concepts, please refer to the Technical Notes. Finally, it should be noted that Malaysia's national statistics on crime are compiled in accordance with the International Classification of Crime for Statistical Purpose Version 1.0, which was published by the United Nations Office on Drugs and Crime (UNODC), to ensure international comparability.
Unreported crimes are not included in this dataset. In general, it is acknowledged that the true crime rate may exceed the reported crime rate, especially for crimes where there are significant disincentives or barriers to reporting.
β
Number of crimes in Malaysia by district, crime category, and type of crime.
Name in Dataset | Variable | Definition |
---|---|---|
date (Date) | Date | The date in YYYY-MM-DD format, with MM-DD set to 01-01 as the data is at annual frequency |
state (Categorical) | State | One of 16 states, or Malaysia; however, data for W.P. Putrajaya and W.P. Labuan are subsumed under W.P. Kuala Lumpur and Sabah respectively. |
district (Categorical) | Police District | Name of the police district; note that this is different from the administrative district. |
category (Categorical) | Crime Category | Either violent crime ('assault') or property crime ('property') |
type (Categorical) | Crime Type | The specific type of crime in snake case |
crimes (Integer) | Number of Crimes | The number of actual crimes where a conviction was secured |
16 Oct 2024, 12:00
31 Dec 2025, 12:00
This data is made open under the Creative Commons Attribution 4.0 International License (CC BY 4.0). A copy of the license is available Here.
Full Dataset (CSV)
Recommended for individuals seeking an Excel-friendly format.
0
Full Dataset (Parquet)
Recommended for data scientists seeking to work with data via code.
0
Connect directly to the data with Python.
# If not already installed, do: pip install pandas fastparquet
import pandas as pd
URL_DATA = 'https://storage.data.gov.my/publicsafety/crime_district.parquet'
df = pd.read_parquet(URL_DATA)
if 'date' in df.columns: df['date'] = pd.to_datetime(df['date'])
print(df)
The following code is an example of how to make an API query to retrieve the data catalogue mentioned above. You can use different programming languages by switching the code accordingly. For a complete guide on possible query parameters and syntax, please refer to the official Open API Documentation.
import requests
import pprint
url = "https://api.data.gov.my/data-catalogue?id=crime_district&limit=3"
response_json = requests.get(url=url).json()
pprint.pprint(response_json)
Department of Statistics Malaysia
Β© 2024 Public Sector Open Data
Open Data
data.gov.my