Question: Using Panda. Create a variable that holds total cases per million for each country on April 19, 2020. What was the mean total cases per
Using Panda. Create a variable that holds total cases per million for each country on April 19, 2020. What was the mean total cases per million on that date? How many countries had more than 1000 total cases per million on that date? (Note that not all countries have information for this variable, so think carefully how to treat those countries).
| iso_code | continent | location | date | total_cases | new_cases | new_cases_smoothed | total_deaths | new_deaths | new_deaths_smoothed | total_cases_per_million |
| AFG | Asia | Afghanistan | 2/24/2020 | 1 | 1 | 0.026 | ||||
| AFG | Asia | Afghanistan | 2/25/2020 | 1 | 0 | 0.026 | ||||
| AFG | Asia | Afghanistan | 2/26/2020 | 1 | 0 | 0.026 | ||||
| AFG | Asia | Afghanistan | 2/27/2020 | 1 | 0 | 0.026 | ||||
| AFG | Asia | Afghanistan | 2/28/2020 | 1 | 0 | 0.026 | ||||
| AFG | Asia | Afghanistan | 2/29/2020 | 1 | 0 | 0.143 | 0 | 0.026 | ||
| AFG | Asia | Afghanistan | 3/1/2020 | 1 | 0 | 0.143 | 0 | 0.026 | ||
| AFG | Asia | Afghanistan | 3/2/2020 | 1 | 0 | 0 | 0 | 0.026 | ||
| AFG | Asia | Afghanistan | 3/3/2020 | 2 | 1 | 0.143 | 0 | 0.051 | ||
| AFG | Asia | Afghanistan | 3/4/2020 | 4 | 2 | 0.429 | 0 | 0.103 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
