pandas_exercises
pandas_exercises copied to clipboard
02 Filtering on Euro 12
I think the question 9 (### Step 9. Calculate the mean Yellow Cards given per Team) is not clear because the table you get just have unique countries already.
| Team | Yellow Cards | Red Cards | |
|---|---|---|---|
| 0 | Croatia | 9 | 0 |
| 1 | Czech Republic | 7 | 0 |
| 2 | Denmark | 4 | 0 |
| 3 | England | 5 | 0 |
| 4 | France | 6 | 0 |
| 5 | Germany | 4 | 0 |
| 6 | Greece | 9 | 1 |
| 7 | Italy | 16 | 0 |
| 8 | Netherlands | 5 | 0 |
| 9 | Poland | 7 | 1 |
| 10 | Portugal | 12 | 0 |
| 11 | Republic of Ireland | 6 | 1 |
| 12 | Russia | 6 | 0 |
| 13 | Spain | 11 | 0 |
| 14 | Sweden | 7 | 0 |
| 15 | Ukraine | 5 | 0 |
- should I compute the mean of yellow cards between yellow and red?
- should I compute the mean between all countries in the column
Yellow Cards?