idxmax in pandas code example
Example 1: idxmax in python
>>> df.idxmax(axis="columns")
Pork co2_emissions
Wheat Products consumption
Beef co2_emissions
dtype: object
Example 2: idxmax in python
>>> df.idxmax()
consumption Wheat Products
co2_emissions Beef
dtype: object