I have a shape file of all the counties in the United States and data from the 208-2016 United States Presidential Elections. I am trying to join the data so that when I click on the county name, the results for the election will show. I have tried joining by the FIPS code but that doesn't help.
Here is the data if you think you can help me:
Drawing features to show quantity by category—Help | ArcGIS Desktop
Symbolization—ArcGIS Pro | ArcGIS Desktop
def classify(val):
""" """
if val < 25000:
return 'A'
if 25000 <= val <= 50000:
return 'B'
return 'C'
vals = [24000, 49000, 100000]
[classify(val) for val in vals]
Out[76]: ['A', 'B', 'C']
if you don't want to symbolize, you can reclassify
Add a text field
'classify' is your code block (change thresholds and return values as appropriate)
python parser
call you function using
classify(!YourFieldName!)
in the expression... obviously keep the ! marks and just change the fieldname