This repository was archived by the owner on Mar 29, 2022. It is now read-only.
Cases covid-19 evolution top 10 citys ceara#105
Open
AAntunesNDS wants to merge 1 commit into3778:masterfrom
Open
Cases covid-19 evolution top 10 citys ceara#105AAntunesNDS wants to merge 1 commit into3778:masterfrom
AAntunesNDS wants to merge 1 commit into3778:masterfrom
Conversation
Contributor
|
Boa! To imaginando que você se inspirou aqui: https://www.ft.com/coronavirus-latest O que achas das seguintes sugestões:
|
Contributor
|
Acho que esse código pode simplificar sua análise tb. (load_cases('city')
.filter(regex='/CE')
.loc(axis=1)[:, 'totalCases']
.droplevel(1, axis=1)
# get top 3 city with most cases
[lambda df: df.iloc[-1].nlargest(3).index]
# select days after total cases has reached 10
.where(lambda df: (df > 10).cumsum().astype(bool))
# reset each city to start at day 0
.apply(lambda s: s.dropna().reset_index(drop=True)))Resultado: Pra fazer os "dias dobrando" eu colocaria no final ...
.assign(doubling_3days=lambda df: ...)
.assign(doubling_5days=lambda df: ...))referencia pra fazer a conta https://en.wikipedia.org/wiki/Doubling_time |
Contributor
Author
|
Obrigado pelas dicas! Estou aprendendo muito com suas sugestões |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Data visualization: covid-19 evolution top 10 citys ceara.