Daily COVID-19 cases at national and state level, broken down by age group.
0 views·0 downloads
Building on the base dataset, this dataset tabules new COVID-19 cases by age either based on the individual's IC number (for Malaysians with an IC number) or based on the age declared in the COVID-19 test result declaration (for cases without an IC number or non-Malaysians).
In a small minority (~1.5%) of cases, no age was declared or able to be derived. As such, the total number of cases derived from summing the cases for all age groups in this dataset will be less than the number of cases in the base dataset.
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, broken down by age group.
Name in Dataset | Variable | Definition |
---|---|---|
date (Date) | Date | Date in YYYY-MM-DD format |
state (Categorical) | State | One of 16 states, or Malaysia |
cases_child (Integer) | Child Cases | Number of new COVID-19 cases aged 11 and under |
cases_adolescent (Integer) | Adolescent Cases | Number of new COVID-19 cases aged 12-17 |
cases_adult (Integer) | Adult Cases | Number of new COVID-19 cases aged 18-59 |
cases_elderly (Integer) | Elderly Cases | Number of new COVID-19 cases aged 60 and above |
cases_0_4 (Integer) | Cases Aged 0-4 | Number of new COVID-19 cases aged 0-4 |
cases_5_11 (Integer) | Cases Aged 5-11 | Number of new COVID-19 cases aged 5-11 |
cases_12_17 (Integer) | Cases Aged 12-17 | Number of new COVID-19 cases aged 12-17 |
cases_18_29 (Integer) | Cases Aged 18-29 | Number of new COVID-19 cases aged 18-29 |
cases_30_39 (Integer) | Cases Aged 30-39 | Number of new COVID-19 cases aged 30-39 |
cases_40_49 (Integer) | Cases Aged 40-49 | Number of new COVID-19 cases aged 40-49 |
cases_50_59 (Integer) | Cases Aged 50-59 | Number of new COVID-19 cases aged 50-59 |
cases_60_69 (Integer) | Cases Aged 60-69 | Number of new COVID-19 cases aged 60-69 |
cases_70_79 (Integer) | Cases Aged 70-79 | Number of new COVID-19 cases aged 70-79 |
cases_80 (Integer) | Cases Aged 80 | Number of new COVID-19 cases aged 80 and above |
22 Sept 2024, 12:00
29 Sept 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_age.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_age&limit=3"
response_json = requests.get(url=url).json()
pprint.pprint(response_json)
© 2024 Public Sector Open Data