Covid Thailand Trends

Thailand Covid testing and case data gathered and combined from various sources for others to download or view


Project maintained by djay Hosted on GitHub Pages — Theme by mattgraham

Thailand COVID-19 Data

Note Share via https://djay.github.io/covidthailand

Thailand COVID-19 case/test/vaccination data gathered and combined from various government sources for others to view or download.

Cases | Deaths | Vaccinations | Active Cases | Testing | Downloads | About

NEW Excess Deaths

Disclaimer

Data offered here is offered as is with no guarantees. As much as possible government reports and data feeds have been used effort has gone into making this data collection accurate and timely. This sites only intention is to give an accurate representation of all the available Covid data for Thailand in one place.

Links to all data sources are including in Downloads


Questions?

Got a question about covid in Thailand? Try asking it in Q&A discussion

Weekly data from Oct 1st

From Oct 1st 2022 all covid data from the DDC has been released in weekly chunks. Data here will be displayed as daily averages and updates will be once per week (mondays?). In addition many of the data sources have stopped being published so many plots will no longer be change.

Trends

Deaths

Deaths by Major Variant (Extrapolated from Surviellance)

COVID-19 Deaths

COVID-19 Deaths Age Range

COVID-19 Death Comorbidities and Risks

Cases

Estimated Daily Infections

No longer updated so model is inaccurate

Cases by Region

Bangkok Region - Central - Eastern - Western - Northeast A-N - Northeast N-Y - Northern C-N - Northern P-U - Southern C-P - Southern R-Y

Cases by Province

Cases by Patient Type

Cases by Risk Classification

|

Cases by Where Tested

Cases by Age

Cases and Social Distancing

Cases in Non-Thai

Case Fatality Rate

Vaccinations

Vaccinations by Manufacturer

Vaccinations by Priority Groups

Vaccinations by Region/Province

Daily Vaccinations

By Province

By Group

Active Cases/Hospitalisations

Testing

Positive Rate

PCR Tests in Thailand by day

PCR Tests by Health District

Excess Deaths

Shows Deaths from all causes in comparison to the min, max and mean of Deaths from the 5 years pre-pandemic.

Testing, isolation and Vaccine assistance

How to contribute

Install

Running just plots (or latest files)

The plots are produced from csv files made in covid_data.py.

  1. Get the latest datasets release to speed up the process.
  1. You can comment out parts of covid_plot.py to skip some plots.
    • In USE_CACHE_DATA only *_3.svg files are produced. 3 is for 3rd wave (since April 2021).

Running full code

  1. Extract the latest input files (~1.3G). This get the latest cache of documents to speed up scraping.
  1. To build the CSV files needed for plotting from the inputs downloaded above, from the root directory of the repo, run:
  USE_CACHE_DATA=True python covid_data.py
  1. If many days have passed since the last run then return to step 1. or slightly slow but smaller download is to download the latest datasets files which will speed up dashboard scrapping which is the slowest part.

  2. If you really need to ensure all the files are scraped again then

Running Tests (scraping)

$ sudo gem update bundler
$ bundle config set --local path vendor/bundle
$ bundler install
$ bundle exec jekyll serve

Contributors

About

Made with python/pandas/matplotlib. Dylan Jay gave a talk on how easy it is to extract data from PDFs and powerpoints and plot data at Bangkok’s Monthly ThaiPy Event Video: “How I scraped Thailand’s covid data” (1h mark)

Why do this? Originally to answer the question “Was Thailand doing enough testing?” for myself and because too many people were wrong on the internets.

License

!Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

Other sources of visualisations/Data for Thailand

Change log