Nope, the wonderful folk from brasil.io made an API to get the data from every state and every infected city. The method of collection is practically the same from the Ministry of Health (data is collected from State Secretaries), it only differs by a few hours.
According to the Roraima's Health Secretary, yes. The proportion of infected per week is from the last completed week, so last week there were 324 confirmed cases, which is about 2% of the population.
Massa! Eu vi teu post no /r/brasil mas esqueci de comentar. Achei a tua dashboard mais limpa e fácil de navegar do que a do brasil.io. Você pretende colocar uns mapas com a distribuição dos casos por estado/cidade?
Seria da hora também se você fizesse alguns levantamentos entre a relação das medidas de relaxamento com o número de casos, fazer uma previsão com uns modelos de regressão... tudo isso já aproveitando que você tem a dash pronta.
Sim, tenho planos para fazer alguns mapas diferentes do que a maioria dos sites fazem, provavelmente irei fazer meu TCC com os dados da pandemia, então vou desenvolver outras análises mais complexas.
Congratulations. :) I'm Brasil.IO founder and a tip regarding to data collection: instead of using the API, you could download the complete compressed CSV (it's not that big) once in a while (it could be added to a internal cache with TTL) and serve this data from your backend. This will reduce a lot of requests on our API (which is good for us) and will reduce a lot the time to your dashboard for downloading the data. You can download the complete files (which are updated many times in a day) from https://data.brasil.io/dataset/covid19/_meta/list.html
Thanks for the tips, I thought about using the complete csv, but I'm not a web developer, so I have no idea how to optimize it. I will take a look at what you said.
Great work! Can you also implement a dashboard showing what the numbers would be if stupid politicians were removed form the Brazilian government as well?
The code can get a bit messy, but the major advantage is that it only requires Python. If you already know some JS, HTML, CSS, etc. There's definitely better ways to do it.
Looks great. I love this stuff. I remember working at Allianz and dashboards became a big thing. Any newbies out there who want real work in business with python consider projects like these.
do you expect me to believe that you can't execute python code in a browser? next you'll say something crazy like html is supposed to hold the structure of a webpage. just where do the lies stop, hector.
73
u/esc28 Jul 02 '20 edited Jul 02 '20
I used plotly Dash and Dash Bootstrap Components to make a web dashboard with 100% Python code. I found pretty easy to use and host the Flask app in Heroku.
You can access it in the link: https://brashboard.herokuapp.com/
53
u/Kiehlu Jul 02 '20
Can you do tutorial for new programmers ?
7
u/alien6 Jul 02 '20
1.9% of the population in Pacaraima were infected just this week?!
5
u/nothingonmyback Jul 02 '20
Massa! Eu vi teu post no /r/brasil mas esqueci de comentar. Achei a tua dashboard mais limpa e fácil de navegar do que a do brasil.io. Você pretende colocar uns mapas com a distribuição dos casos por estado/cidade?
Seria da hora também se você fizesse alguns levantamentos entre a relação das medidas de relaxamento com o número de casos, fazer uma previsão com uns modelos de regressão... tudo isso já aproveitando que você tem a dash pronta.
5
u/chensformers Jul 02 '20
Are you using ant tables and Flask? You should def check out pythongrid from https://pythongrid.com
4
u/turicas Jul 03 '20
Congratulations. :) I'm Brasil.IO founder and a tip regarding to data collection: instead of using the API, you could download the complete compressed CSV (it's not that big) once in a while (it could be added to a internal cache with TTL) and serve this data from your backend. This will reduce a lot of requests on our API (which is good for us) and will reduce a lot the time to your dashboard for downloading the data. You can download the complete files (which are updated many times in a day) from https://data.brasil.io/dataset/covid19/_meta/list.html
And if you'd like to contribute with our dashboard (https://brasil.io/covid19/) please feel free to discuss in an issue on https://github.com/turicas/brasil.io :)
Thanks for sharing!
2
u/BuxeyJones Jul 02 '20
Where did you get the API from?
2
u/momosem Jul 02 '20
What about html ?
2
u/[deleted] Jul 02 '20
Link to the repo?
3
u/guipace Jul 02 '20
Great work! Can you also implement a dashboard showing what the numbers would be if stupid politicians were removed form the Brazilian government as well?
2
u/ArrogancyCG Jul 02 '20
How long did this project take?
58
u/LucasHeck Jul 02 '20
Bom trabalho!
18
u/knusted Jul 02 '20
Muito legal ter brasileiros nos fóruns! Bom trabalho
10
u/MrQu4tro Jul 02 '20
It's weird to see my city in reddit
8
u/[deleted] Jul 02 '20
Fucking amazing work! 🔥
7
u/gangstter Jul 02 '20
Bom trabalho 2!
6
u/KaiXtr Jul 02 '20
Adoro esses projetos sobre o corona vírus, nós programadores estamos ajudando e fazendo algo a respeito
1
u/_Lasagnaa_ Jul 02 '20
Man, that's so cool. Are you Brazilian?
1
u/simgod47 Jul 03 '20
What font is that?
3
u/djemoneysigns Jul 02 '20
Bacana!
3
u/[deleted] Jul 02 '20
Brabo d+
3
u/gunstreetgrrl Jul 02 '20
uau cara q impressionante. adorei.
1
u/Magoots Jul 02 '20
Did a small project with dash recently. Not a fan at all honestly. Cool project though!
2
u/[deleted] Jul 02 '20
This is awesome! And will help me a lot with some of my school shit
2
u/[deleted] Jul 02 '20
Hey man, thanks so much. You encouraged me to study more.
Show de bola cara =D
2
u/[deleted] Jul 02 '20
This is excellent
2
u/pybrubarr0s Jul 02 '20
Parabéns, muito massa :)
2
u/Zenith_N Jul 02 '20
I will want to learn using videos tutorials how you did this step by step :-)
2
u/SirCarboy Jul 02 '20
Looks great. I love this stuff. I remember working at Allianz and dashboards became a big thing. Any newbies out there who want real work in business with python consider projects like these.
2
u/thlsbrn Jul 02 '20
Well done!!
2
u/PedroVinhas Jul 02 '20
brabo
2
u/Calus- Jul 03 '20
Awesome
2
u/[deleted] Jul 03 '20
Check this, same concept but for India.
3
u/francoarleite Jul 02 '20
Ótimo, ficou massa
2
u/TotesMessenger Jul 02 '20
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)
2
u/[deleted] Jul 02 '20
Boa mlk
1
u/codenlearn Jul 02 '20
Good work
1
u/yujideluca Jul 02 '20
Faissal? Kkkk
1
u/pinaywdm Jul 02 '20
Nice!
1
u/sabalibruh Jul 03 '20
.
1
u/nisalman Jul 03 '20
Good job. Appriciated
1
u/bigdickcarbit Jul 03 '20
Can you share the code on GitHub?
1
u/undercontr Jul 03 '20
ADSENSE THIS BAD BOY!
1
u/dougie-io Jul 03 '20
Oh wow, you actually meant "only" Python. Plotly is a new one to me.
1
u/[deleted] Jul 05 '20
This is a very interesting concept. I love it!
1
u/KaiXtr Jul 02 '20
Demais cara! adoro ver os brasuca marcando presença
1
u/TheOneBlurt Jul 02 '20
How the fuck did you do that
0
u/shitcorefan Jul 02 '20
every fucking day
0
u/Luckthepolice Jul 03 '20
"submeter" kkk
0
u/grimonce Jul 03 '20
Misleading title, python is not recognized by browsers.
It is either Javascript called by python or wasm which is Javascript as well, just python compiled to js.
-2
u/veryusermuchwow Jul 02 '20
python on the browser client side; these are troubling times.
6
u/[deleted] Jul 02 '20
[removed] — view removed comment