DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python aggregate count and sum
df.groupby('Company Name').agg(MySum=('Amount', 'sum'), MyCount=('Amount', 'count'))
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#aggregate
#count
#sum
ADD COMMENT
Topic
COMMENT
Name
4+9 =
Submit