SyntaxFix
Write A Post
Hire A Developer
Questions
df.groupby('Company Name').agg({'Organisation name':'count','Amount':'sum'})\ .apply(lambda x: x.sort_values(['count','sum'], ascending=False))