{"id":27063831,"url":"https://github.com/rvalla/covid-19","last_synced_at":"2025-06-24T13:11:48.248Z","repository":{"id":79185996,"uuid":"247563711","full_name":"rvalla/COVID-19","owner":"rvalla","description":"Some code to analyze international data from COVID-19 Data Repository by Johns Hopkins CSSE and Argentina outbreak status.","archived":false,"fork":false,"pushed_at":"2021-10-13T23:13:12.000Z","size":24331,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T16:38:17.932Z","etag":null,"topics":["argentina","argentina-data","covid-19","data-visualization","johns-hopkins-csse","plotting","python3"],"latest_commit_sha":null,"homepage":"https://rvalla.github.io/eng/covid19_eng/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rvalla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-15T22:38:14.000Z","updated_at":"2021-10-13T23:13:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"44b659dd-ceab-4c9f-93bf-df6f065387e4","html_url":"https://github.com/rvalla/COVID-19","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rvalla/COVID-19","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvalla%2FCOVID-19","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvalla%2FCOVID-19/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvalla%2FCOVID-19/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvalla%2FCOVID-19/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rvalla","download_url":"https://codeload.github.com/rvalla/COVID-19/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvalla%2FCOVID-19/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261682995,"owners_count":23193686,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["argentina","argentina-data","covid-19","data-visualization","johns-hopkins-csse","plotting","python3"],"created_at":"2025-04-05T16:35:15.822Z","updated_at":"2025-06-24T13:11:48.240Z","avatar_url":"https://github.com/rvalla.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Analysis and plotting of COVID-19 data\n\nThis is a very little piece of code in [Python](https://www.python.org) to analyze through plots\nthe data in the [2019 Novel Coronavirus COVID-19 (2019-nCoV) Data Repository by Johns\nHopkins CSSE](https://github.com/CSSEGISandData/COVID-19) by regions. Or the data from [National\nReports](https://www.argentina.gob.ar/coronavirus/informe-diario) published in Argentina.\n\nData of the outbreak evolution in Argentina is taken from National Reports and then loaded on\na spreadsheet (exported afterwards to a .csv). The structure of the data is similar to that\nin [argcovidapi repository](https://github.com/mariano22/argcovidapi), I updated the data\nwithin the week until September 21st adding data about official testing and dropped cases.\nNote the above-mentioned reports have *confirmed* and *deaths* cases separated by province\nbut that is not the case with *recovered* cases and *laboratory tests*. So, the *UNKNOWN*\ncategory was added.\n\nIf you want to plot worldwide data you need to download the Johns Hopkins repository...\u003c/br\u003e\n\nThen you need **Python 3** and this packages to use it:\n- matplotlib\n- pandas\n- numpy\n\n### With *COVID-19_Analysis.py*...\nYou can visualize the data from [2019 Novel Coronavirus COVID-19 (2019-nCoV) Data Repository by Johns\nHopkins CSSE](https://github.com/CSSEGISandData/COVID-19). Is possible to:\n- Plot cases' data (confirmed cases, deaths, recovered patients) by date or\nsince _n_ case appearance.\n- Use linear or logarithmic scales.\n- Group data by country or study states/province data.\n- Plot death rate evolution too.\n\n### With *COVID-19_Ar_ProcessingData.py*...\nYou can load data on *Argentina.csv* and save information to a group of csv files then used by\n*COVID-19_Ar_Analysis.py* to visualize it. The files are stored in *Argentina_Data/Processed_data*. That\nfiles are updated every time I push new data to the repository.\n\n### With *COVID-19_Ar_Analysis.py*...\nYou can visualize the data from National Reports published in Argentina. Is possible to:\n- Plot cases' data (confirmed cases, deaths, recovered patients).\n- Plot death rate evolution.\n- See outbreak evolution in Argentina in a synthetic chart (that shows confirmed and active cases, deaths,\ndaily trends, laboratory tests and positive tests ratio among others).\n- Plot duplication time evolution (how many days would be need for total cases being duplicated).\n- Plot the confirmed cases distribution by day of the week.\n\n### With *COVID-19_DataGobAr_TestsAnalysis.py*...\nYou can visualize the laboratory tests data published in\n[datos.gob.ar](https://datos.gob.ar/dataset/salud-covid-19-determinaciones-registradas-republica-argentina).\nIs possible to:\n- Plot daily and cumulative tests by province.\n- Plot daily and cumulative positive tests by province.\n- Plot daily and cumulative positive test ratio (positive/total).\n\n### Definitions\nIn the charts that the code generates you will see a lot of categories. Pay attention to these descriptions\nto know exactly what each one represents.\n- Case: simply the word to indicate the event related to a potentially infected person\n- Confirmed case: a case confirmed by the authorities\n- Confirmed cases: number of cases confirmed so far\n- Recovered case: a person who is no longer infected\n- Recovered cases: number of recovered cases so far\n- Active cases: confirmed cases - recovered cases\n- Death case: a case which ended with death of the patient\n- New cases: number of new cases registered on a day\n- New cases trend: new cases for a day but taking 3 days average. Suppose there were 10 cases on Monday, 15 on\nTuesday and 25 on Wednesday... Then you have a new cases trend of 33.33 for Tuesday ((10+15+25)/3)\n- Death rate: the ratio between deaths and confirmed cases (note that confirmed cases are less than actual cases\nbut we don't know them)\n- Duplication speed: days needed to duplicate a cumulative cases until the day before if new cases per day remain constant\n- Duplication speed tren: duplication speed taking 3 days average\n\n### Actual charts\nIf you don't want to run the code but are curious about the outbreak status in Argentina you can download\nthe charts in *Argentina_Data/actual_charts* folder.\n\n\nFeel free to contact me by [mail](mailto:rodrigovalla@protonmail.ch) or reach me in\n[telegram](https://t.me/rvalla) or [mastodon](https://fosstodon.org/@rvalla).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvalla%2Fcovid-19","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frvalla%2Fcovid-19","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvalla%2Fcovid-19/lists"}