I am doing a project for a class right now in ArcGIS Pro where we are looking at population density with census data. Looking to map females 25-29 years old that are labeled as other race. The female/age and race are in two seperate fields amongst other gender/age and race fields. I want to be able to populate a new field marking the number of the gender/age and race given above but am not sure how.
This is what I've tried:
expression: OF25_29 = calc(!Other!,!F25_29!)
Code Block:
def calc(arg):
for !Other! >= 1 and !F25_29! >=1:
OF25_29 = !Other! + !F25_29!
for !Other! <1 and !F25_29! < 1:
OF25_29 = 0