ARC GIS won't let me join data

3303
11
01-26-2019 08:45 PM
ChaseBergklint
New Contributor II

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:

Tags (2)
0 Kudos
11 Replies
DanPatterson_Retired
MVP Emeritus
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

0 Kudos