Jump to content

Talk:Statistics of the COVID-19 pandemic in Portugal

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia


Data update

[edit]

Since last year I've been using a python script to populate/update the data from the DGS website. For anyone who would like to do the same, feel free to use the code that's in this github repository. Since the formatting is also automatically generated, any change to the page layout could be overwritten by the script. I do my best to always check if there were any changes before updating, but sometimes it can go unnoticed. So if you would like to modify the format, you can suggested it here and I'll make the modifications in the code. -- Wvictor07 (talk) 19:11, 20 August 2021 (UTC)[reply]

Date formatting on new cases/deaths

[edit]

Do you see any alternative for the date format on new cases/deaths charts? I do think these types of graphs can be better understood if they are bar charts. However that brings the clutter in the x axis problem again. -- Wvictor07 (talk) 07:21, 13 May 2020 (UTC)[reply]

i am yet to think about a solution for that problem. My knowledge of wiki templates is kind of limited. The new cases/deaths by day chart should be a box shard cuz they are isolated values, independent of the value of the previous days. The graphs template, however, does not group dates like it does when its a line. Bummer. Maybe we can use scatter charts ? --Hagnat (talk) 11:34, 13 May 2020 (UTC)[reply]
@Wvictor07: so i was checking our options, and none of them would produce a graph with our desired look, imho. I checked the {{Graph:Chart}} documentation, and then i noticed that there is going to be a revamp on wikipedia's graph engine. They will move the rendering to client-side, which will (perhaps) allow us to fix this issue. --Hagnat (talk) 18:49, 13 May 2020 (UTC)[reply]
@Hagnat: Great, I didn't know about that. Last time I was messing around with this I chose to use scatter graphs for the daily increase plots. The thing is they are not as good as the bar charts though. In the mean time I'll try to update my python script to generate most of the graphs and tables of this page. --Wvictor07 (talk) 13:33, 14 May 2020 (UTC)[reply]
@Hagnat: After finishing updating the script I'll try to generate the new cases/graphs directly in python and see how satisfying the results are. If the template is not very different from wikipedia's (and I don't think it is) and if you agree that could be a solution. --Wvictor07 (talk) 13:33, 14 May 2020 (UTC)[reply]
@Wvictor07: cool. Looking forward it. --Hagnat (talk) 11:54, 14 May 2020 (UTC)[reply]
@Hagnat:I changed the format to an area graph, but that's probably not the best way to visualize it (you can change it if you'd like). These types of graphs should give one a sense of the cases/deaths curve, and to know precise numbers one would usually go to the medical covid-19 timeline chart in the main page. But still, it's a good thing to keep looking for the best way to represent these data. --Wvictor07 (talk)
@Wvictor07: not a huge fan, but maybe that's a compromise we must have, due the large amount of data in there. --Hagnat (talk) 17:58, 14 May 2020 (UTC)[reply]

@Wvictor07: the key to update the Growth of confirmed * charts is that you cannot have the same value twice on X, so skip every date that has no new case/death. --Hagnat (talk) 12:59, 15 May 2020 (UTC)[reply]

Also, another editor increased the size of the brazil graphs from |width=600 to |width=700. I increased my generator script to 720, and will see how it looks like today once the minister of health releases new data --Hagnat (talk) 13:02, 15 May 2020 (UTC)[reply]
@Hagnat: I updated the script to have 720px in the new cases/deaths graphs using bar charts (again haha) and 650px for the rest. Right now, perhaps it's better to leave it like this for the daily cases and eventually we can come up with something. I'll also update the script to deal with the growth of confirmed cases, but probably not today - if you want to update it go for it.

Cases and deaths per week

[edit]

Propose using cases/deaths per week rather than per day as it shows trends better and solves width problem.Ânes-pur-sàng wiki 09:16, 16 August 2020 (UTC)[reply]

@Ânes-pur-sàng: I don't think this format would yield more information compared to the previous one. Also, a solution to the width problem was to use a horizontal overflow (as it was before) at least for now - it is the method being used in some other pages (either this method adopted in pages of countries like France and Spain or changing the plot type as a line chart used in the pages of Brazil, Italy and other countries). Since the DGS report format was changed (again), no more data on the cases/deaths by age and gender can be obtained through the PDF files, which will force us to use the data until August 16th. Since I'm using a script that does all the data gathering, I'll leave the daily cases/deaths by week for further information (that would have to be manually updated for now though), however I would propose restoring the daily graphs to the excerpt section so that it can be displayed at the main page. I'll make these changes to the script as soon as possible. -- Wvictor07 (talk) 13:34, 22 August 2020 (UTC)[reply]

I check pages listed in Category:Pages with incorrect ref formatting to try to fix reference errors. One of the things I do is look for content for orphaned references in wikilinked articles. I have found content for some of Statistics of the COVID-19 pandemic in Portugal's orphans, the problem is that I found more than one version. I can't determine which (if any) is correct for this article, so I am asking for a sentient editor to look it over and copy the correct ref content into this article.

Reference named "auto1":

I apologize if any of the above are effectively identical; I am just a simple computer program, so I can't determine whether minor differences are significant or not. AnomieBOT 20:51, 9 September 2021 (UTC)[reply]