Skip to content

Instantly share code, notes, and snippets.

@mashhadazam
Created March 6, 2020 14:26
Show Gist options
  • Save mashhadazam/beb27db7fe7426ed10c1f58e6d49a91c to your computer and use it in GitHub Desktop.
Save mashhadazam/beb27db7fe7426ed10c1f58e6d49a91c to your computer and use it in GitHub Desktop.
ItalyFirstCase=CountryConsolidated.loc['Italy']['Total Confirmed Cases'].reset_index().set_index('Date')
SKFirstCase=CountryConsolidated.loc['South Korea']['Total Confirmed Cases'].reset_index().set_index('Date')
IranFirstCase=CountryConsolidated.loc['Iran']['Total Confirmed Cases'].reset_index().set_index('Date')
GermanyFirstCase=CountryConsolidated.loc['Germany']['Total Confirmed Cases'].reset_index().set_index('Date')
SingaporeFirstCase=CountryConsolidated.loc['Singapore']['Total Confirmed Cases'].reset_index().set_index('Date')
ItalyGrowth=ItalyFirstCase[ItalyFirstCase.ne(0)].dropna().reset_index()
SKGrowth=SKFirstCase[SKFirstCase.ne(0)].dropna().reset_index()
IranGrowth=IranFirstCase[IranFirstCase.ne(0)].dropna().reset_index()
GermanyGrowth=GermanyFirstCase[GermanyFirstCase.ne(0)].dropna().reset_index()
SingaporeGrowth=SingaporeFirstCase[SingaporeFirstCase.ne(0)].dropna().reset_index()
@ycaroafonso
Copy link

"South Korea" has renamed for "Korea, South"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment