Daily COVID-19 Cases by Age Group & State

Data as of 14 Dec 2024, 23:59

Daily COVID-19 cases at national and state level, broken down by age group.

0 viewsΒ·0 downloads

Table

Adult Cases

Elderly Cases

Child Cases

Adolescent Cases

How is this data produced?

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).

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

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.

Publication(s) using this data

KKMNOW features a dashboard on COVID-19 where you can explore the data in a more interactive manner!

Metadata

Dataset description

Daily COVID-19 cases at national and state level, broken down by age group.

Variable definitions
  • Date
  • State
  • Child Cases
  • Adolescent Cases
  • Adult Cases
  • Elderly Cases
  • Cases Aged 0-4
  • Cases Aged 5-11
  • Cases Aged 12-17
  • Cases Aged 18-29
  • Cases Aged 30-39
  • Cases Aged 40-49
  • Cases Aged 50-59
  • Cases Aged 60-69
  • Cases Aged 70-79
  • Cases Aged 80
Last updated:

15 Dec 2024, 12:00

Next update:

22 Dec 2024, 12:00

Data source(s)
  • Ministry of Health 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/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)

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=covid_cases_age&limit=3" response_json = requests.get(url=url).json() pprint.pprint(response_json)