I got a dataframe that looks like this.
+---+------+------+------+------+
| | Name | col1 | col2 | col3 |
+---+------+------+------+------+
| 1 | A | 10 | 0 | 0 |
| 2 | B | 5 | 20 | 5 |
| 3 | C | 15 | 15 | 20 |
| 4 | D | 20 | 5 | 15 |
| 5 | F | 0 | 10 | 15 |
+---+------+------+------+------+
I want the name of maximum for each column. The expected output should look like this:
+---+------+------+
| | col | MAX |
+---+------+------+
| 1 | col1 | D |
| 2 | col2 | B |
| 3 | col3 | C |
+---+------+------+
how do I code it??