AnsweredAssumed Answered

Choosing a feature and selecting by attributes using arcpy

Question asked by jbridwell_Dewberry on Aug 1, 2018
Latest reply on Aug 1, 2018 by Dan_Patterson

Hey All- Let's says I have a list of state Names in a Python script:

stateNames = ['Alabama', 'California', 'Colorado', ...]

I also have a gdb called states.gdb, that has a feature for each state: Alaska, Alabama, California, etc...

I also have an attribute value that I want to use to select certain features by attribute. Lets say its 'Fips_code' = 01007.

Using an item from my stateNames list, lets use stateNames[0] or Alabama, I want to get the Alabama feature from my states.gdb and select all of the records that have have Fips_code = 01007. Any suggestions on where to begin?