I have a feature class and using arcpy.da.SearchCursor I'm getting unique values of a field (e.g. Name). How can I use this method to get the associated row value of a different field (diff field = Name2)?
So far I use this to get unique values on only field Name:
values = [row for row in arcpy.da.SearchCursor(fc, ("Name"))] uniqueValues = set(values) for value in uniqueValues:
When searching through the feature class how do I also get the value of another field, field Name2?