Daily COVID-19 cases at national and state level, with details on imported, recovered, active, and cluster cases.
0 viewsΒ·0 downloads
This dataset is produced by the Crisis Preparedness and Response Centre (CPRC) at the Ministry of Health, based on daily ground-level surveillance conducted to monitor the evolution of COVID-19 in Malaysia. Following Malaysia's transition to endemicity, the public reporting frequency was altered from daily to weekly. Nevertheless, internal surveillance is still conducted on a daily basis.
In general, the data presented here is based on the date of report rather than the date of the event.
KKMNOW features a dashboard on COVID-19 where you can explore the data in a more interactive manner!
Daily COVID-19 cases at national and state level, with details on imported, recovered, active, and cluster cases.
Name in Dataset | Variable | Definition |
---|---|---|
date (Date) | Date | Date in YYYY-MM-DD format |
state (Categorical) | State | One of 16 states, or Malaysia |
cases_new (Integer) | New Cases | Number of new cases reported in the 24 hours since the last report; note that this is based on the date of report and not the date of the test. |
cases_import (Integer) | Imported Cases | Number of new cases imported from abroad, i.e. inviduals who were infected outside the country |
cases_recovered (Integer) | Recoveries | Number of recoveries from COVID-19 reported in the 24 hours since the last report |
cases_active (Integer) | Active Cases | Number of COVID-19 cases who have not recovered or died |
cases_cluster (Integer) | Cluster-related Cases | Number of cases attributable to clusters; the difference between new cases and the sum of cases attributable to clusters is the number of sporadic cases |
10 Nov 2024, 12:00
17 Nov 2024, 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/healthcare/covid_cases.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=covid_cases&limit=3"
response_json = requests.get(url=url).json()
pprint.pprint(response_json)
Β© 2024 Public Sector Open Data