Search
 
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
Name
4+9 =