Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas max price

s = df.set_index('company')['price'].agg(['max','idxmax'])
print (s['max'])
9
print (s['idxmax'])
c
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #max #price
ADD COMMENT
Topic
Name
2+8 =