I have a Dataframe that looks like following:
| UID | Count1 | Count2 |
|---|---|---|
| XXX | 1 | 1 |
| Xyy | 1 | 0 |
| yyy | 0 | 2 |
I want to sort that Dataframe based on the two Count-Columns. The order of the columns should not matter, plus equally distributed values should be on top.
It should look like this:
| UID | Count1 | Count2 |
|---|---|---|
| XXy | 1 | 1 |
| yyy | 0 | 2 |
| Xyy | 1 | 0 |
Is there a way to achieve this with Pandas?