I am trying to calculate the percent AREA in each class. I have created a new percentage field and have tried to populate it using the following equation in python in the calculate field tool.
percent = float(!Area_ha!)/ sum(!Count!)
in other words I want to take the area of each record and divide it by the total area.
I am getting the following error
File "expression", line 1, in module TypeError: 'float' object is not iterable