I need to get the column name that has max value for specific row.
a b c
0 2 2 1
1 1 5 5
2 1 1 5
3 1 1 3
4 5 4 1
5 5 2 5
I expect to get column c when I search in index=2 and to get column a when I search by index=4.
I tried this solution but it doesn't work. In my real df, when I checked using df.info() , it shows me that Dtype is object not numeric.