I have this df
country Profit
Algeria 10614
Australia 36036
Hungary 2964
Sweden -26055
Australia 3777
Australia 15342
Hungary 12141
Sweden 15373
Algeria 98731
I want to count the country and sum profit each country
Like this
country count sumprofit
Australia 3 ....
Algeria 1 ....
Hungary 2 ....
Sweden 2 ....