ryanthomas88

Learning Python for ArcMap

Discussion created by ryanthomas88 on Nov 21, 2018
Latest reply on Nov 21, 2018 by Dan_Patterson

Hello, I am looking to  delete a specific rows from an attribute table that have specific names. I thought I could possibly use the arcpy. da.UpdateCurser function and end it with Delete Row, that is not working for me. This is what I am using, I am getting a parsing error on line 3.

 

>>> with arcpy.da.UpdateCursor("Export_Output", ["ZONE_SUBTY"]) as row:
... for row in row:
... if row in "AREA OF MINIMAL FLOOD HAZARD"
... row.deleteRow(row)

 

Thank you so much! 

Outcomes