Skip to content

In this notebook, I try to analyze data from covid19 in Spain. I examine the variation of people hospitalized by covid19. We use data from the Spanish government download from https://covid19.isciii.es/resources/serie_historica_acumulados.csv

Notifications You must be signed in to change notification settings

jotavaladouro/covid19

Repository files navigation

Covid19 notebook. People hostipalized in Spain.

I try to analyze data from covid19 in Spain. I examine the variation of people hospitalized by covid19. We use data from the Spanish government download from here

I used data from hospitalized people because the data from detected cases depend on the number of tests, and the number of deaths can vary according to the criteria used.

Files

  • Coronavirus.ipynb .- Jupyter notebook
  • main.py .- Process data /Google cloud function
  • index.html .- Web page displays graph create with main.py

You can see the data update daily in link

Spain

Galician

Comunity

Google Cloud Funcions + Web Page

  1. Create project
gcloud projects create PROJECT_ID
  1. Export credentials
export GOOGLE_APPLICATION_CREDENTIALS="./covid19-jota-59ba6be5c3d7.json"
  1. Create bucket
gsutil mb gs://[BUCKET_NAME]/
  1. Test local
python main.py
  1. Deploy function
gcloud functions deploy do_calc --trigger-topic HOSPITALICED_CALC --runtime python37
  1. Test in cloud
gcloud functions call do_calc --data='{"message": "Hello World!"}'
  1. Create google cloud scheduler that send a pub/sub topic named HOSPITALICED_CALC
  2. Upload web page
gsutil cp index.html  gs://covid19-jota/
gsutil cp -r css/   gs://covid19-jota/

About

In this notebook, I try to analyze data from covid19 in Spain. I examine the variation of people hospitalized by covid19. We use data from the Spanish government download from https://covid19.isciii.es/resources/serie_historica_acumulados.csv

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published