I am attempting to create a single set of all the attributes read from a field on a feature class. This is my code so far:
import arcpy
workspace = arcpy.mapping.MapDocument("CURRENT")
cursor = arcpy.da.SearchCursor("FireStations",['CITY'])
s1 = set()
for row in cursor:
s1.add(row)
print(s1)
The issue I am having is that it seems to create a new set with all the attributes within the field for every new attribute. So instead of one single set of all the attributes I get one set with all the attributes for every row in the specified field. I know this is most likely an issue with my for loop, anyone have any thoughts on fixing this issue?