Hi All,
I'm new to python scripting and I was wondering if there is a way to select features with a unique combination of values from multiple fields. I would like to take each selection set of features and complete additional geoprocessing tasks on them and move on to the next selection of features with the same field values and repeat.
The closest I have got so far is to produce a list of values that are unique in the feature class. I feel like this is not heading in the direction I would like it to. I am open to running the python in or outside of ArcGIS Pro.
import arcpy
import numpy
fc = "C:\Temp\ProjectModel.gdb\TempAvgs_ExportFeatures1"
arr = arcpy.da.FeatureClassToNumPyArray(fc, ['GeologicUnit', 'Analyte'])
uniqueRows = numpy.unique(arr)
print uniqueRows