Crimes by District & Crime Type

Data as of 31 Dec 2023, 23:59

Number of crimes in Malaysia by district, crime category, and type of crime.

0 viewsΒ·0 downloads

Table

Crimes

How is this data produced?

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.

What caveats I should bear in mind when using this data?

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.

Publication(s) using this data

β€”

Metadata

Dataset description

Number of crimes in Malaysia by district, crime category, and type of crime.

Variable definitions
  • Date
  • State
  • Police District
  • Crime Category
  • Crime Type
  • Number of Crimes
Last updated:

16 Oct 2024, 12:00

Next update:

31 Dec 2025, 12:00

Data source(s)
  • Royal Malaysia Police
  • Department of Statistics Malaysia
License

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.

Download

Data
Full Dataset (CSV)

Full Dataset (CSV)

Recommended for individuals seeking an Excel-friendly format.

0

Full Dataset (Parquet)

Full Dataset (Parquet)

Recommended for data scientists seeking to work with data via code.

0

Code

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)

Sample OpenAPI query

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)
jata negara

Department of Statistics Malaysia

Β© 2024 Public Sector Open Data