I have a pandas DF as follows:
What I want to get is a 1 Column df that contains the name of the column of the maximum value of the row, or the order number of that column. (see red circles in the pic)
Any suggestion?
here the data for copy and paste:
matrix = np.array([[0.92234683, 0.94209485, 0.90884652, 0.99763808],
[0.86166401, 0.96755855, 0.9243107 , 0.94240756],
[0.85457367, 0.9169915 , 0.95042024, 0.90661279],
[0.83972504, 0.93902909, 0.91985442, 0.93765059],
[0.84373323, 0.87762977, 0.91005636, 0.88525626]])
thanks