Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

find max value index in value count pandas

df = {'a': 3, 'b':4, 'c':5}
df.max() #max() gives you the maximum value in the series.
#Output
5

df.idxmax() #idx() gives you the index of the maximum values.
#Output
c

#NB: The same applies to min() and idxmin().

Source by www.kite.com #
 
PREVIOUS NEXT
Tagged: #find #max #index #count #pandas
ADD COMMENT
Topic
Name
1+4 =