Relative Content

Tag Archive for dataframefunctioncsvsortingdata-analysis

How to groupby(col1) and sum(col2), (col3), (col 4)

I want to make a function that creates a data table of the sum of each indicator for each site.
I need to group by the site, as there are 100 Devons, 70 Cornwalls and so on, so that Site is the dependent variable, and Devon reads to have A = 6, B = 4, C = 2, D = 1.