PANDAS IDXMAX

# By default, it returns the index for the maximum value in each column.
df.idxmax()
D Goglia