DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+8 =
Submit