Daily COVID-19 Cases by State

Data as of 20 Apr 2024, 23:59

Daily COVID-19 cases at national and state level, with details on imported, recovered, active, and cluster cases.

0 viewsยท0 downloads

Table

Cluster-related Cases

New Cases

Imported Cases

Recoveries

Active Cases

How is this data produced?

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.

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

In general, the data presented here is based on the date of report rather than the date of the event.

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, with details on imported, recovered, active, and cluster cases.

Variable definitions
  • Date
  • State
  • New Cases
  • Imported Cases
  • Recoveries
  • Active Cases
  • Cluster-related Cases
Last updated:

21 Apr 2024, 12:00

Next update:

28 Apr 2024, 12:00

Data source(s)
  • MoH
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.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&limit=3" response_json = requests.get(url=url).json() pprint.pprint(response_json)
jata negara
Ministry of Health Malaysia

ยฉ 2024 Ministry of Health Malaysia