How can I delete a row in a table if value A from Field 1 does not match value B from Field 4 ?
I attempted to use code from a previous post as I figured it would be a start but didn't work.
import arcpy
shp = r"C:\path\to\your\shapefile.shp"
rows = arcpy.UpdateCursor(shp, "", "", "some_field")
for row in rows:
if row.some_field == 2:
rows.deleteRow(row)
del row
del rows
row[0] != row[1]