I am trying to do my investigation using WHO dataset on the suicide rates. Dataset has the column 'sex' with rows 'male' and 'female'. However, without the row "both". So the task is to sum data in 'suicides_no' based on the rows 'female' and male'. E.g just sum female and male rows with respect to year.
Example input:
date sex suicides_no
31332 1985 female 296.0
31338 1985 male 678.0
Example output:
date sex suicides_no
31332 1985 both 974
or
date suicides_no
31332 1985 974