I have a dataframe like this:
A B C
False True False
False False False
True True False
False False True
False True False
And I need to obtain something like this:
Total
B
NaN
A
C
B
I tried with:
df[["A", "B", "C"]].idxmax(1)
but is not returning the NaN, is returning A in place of NaN.
Thanks for any kind of help.