I have the following Dataframe:
| ID | event_1_positive | event_2_negative | event_3_neutral | event_4_negative | event_5_positive |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 0 | 1 | 0 |
| 2 | 1 | 0 | 0 | 0 | 1 |
| 3 | 0 | 1 | 1 | 1 | 0 |
| 4 | 1 | 1 | 0 | 0 | 0 |
| 5 | 0 | 0 | 1 | 1 | 1 |
| 6 | 0 | 1 | 1 | 0 | 1 |
| 7 | 1 | 1 | 1 | 0 | 0 |
| 8 | 0 | 1 | 0 | 0 | 0 |
| 9 | 1 | 1 | 1 | 1 | 0 |
| 10 | 0 | 0 | 0 | 0 | 1 |
What I'd like to do is to order the events by its effect (positive, negative or neutral) and return the count for each effect.
In this case, my expected output would be:
0 negative 11
1 positive 9
2 neutral 5