Skip to content
Snippets Groups Projects

add pandas df filtering exercise

Merged Toby Hodges requested to merge pandas-ex-1 into master
All threads resolved!
+ 6
0
@@ -39,6 +39,12 @@ keypoints:
> Use what you've learned to find all rows in the `covid_cases`
> dataframe that report cases in the year 2019.
>
> > ## Solution
> > ~~~
> > mask = (covid_cases['cases'] > 1) & (covid_cases['year'] == 2019)
> > print(covid_cases[mask])
> > ~~~
> > {: .language-python }
{: .challenge }
{% include links.md %}
Loading