Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

idxmax in python

>>> df.idxmax(axis="columns")
Pork              co2_emissions
Wheat Products     consumption
Beef              co2_emissions
dtype: object
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #idxmax #python
ADD COMMENT
Topic
Name
3+7 =