Supposing that I have a DataFrame along the lines of:
| David | Maxime | |
|---|---|---|
| 0 | cat | duck |
| 1 | dog | cat |
| 2 | horse | duck |
| 3 | cat | dog |
How to obtain the following result ?
| Animals | Total |
|---|---|
| cat | 3 |
| duck | 2 |
| dog | 2 |
| horse | 1 |
I found many codes but not for the case where a result is return according to number of occurrences of datas in unique column.