was wondering if anyone can help me understand why the error keeps coming up:
AttributeError Traceback (most recent call last) in "AttributeError: 'int' object has no attribute 'sum'"
final5UK.head(5)/UKyear['Mortality'].sum()
Code Mortality Code Proportion C546 38945 C546 ...% C367 37687 C367 ...% C436 27857 C436 ...% C357 24868 C357 ...% C34 17849 C34 ...% trying to divide above table by a total figure from before to gain a new table with the individual proportions in % for each of the 5 listed above.
Thanks