I have a Python Data Frame of teams and a place that they have achieved (1, 2 or 3)
| Team | place |
|---|---|
| A | 1 |
| A | 1 |
| A | 1 |
| A | 2 |
| A | 3 |
| A | 1 |
| A | 1 |
| B | 2 |
| B | 2 |
I want to manipulate the df to look like this below. So it is a count of how often a team has achieved each place.
| Team | 1 | 2 | 3 |
|---|---|---|---|
| A | 5 | 1 | 1 |
| B | 0 | 2 | 0 |