AnsweredAssumed Answered

Python ArcMap Fill Empty Space in Attribute table

Question asked by Ryanthomas88 on Nov 21, 2018
Latest reply on Nov 23, 2018 by bixb0012


I am trying to fill specific rows of data that have no data in them with a combination of data from other fields within the attribute table. I'm currently using the UpdateCursor command and I have this code worked out and it runs with no errors but, nothing happens.... The rows don't fill in with the data. 


with arcpy.da.UpdateCursor("Export_Output", ["SYM", "ZONE_SUBTY","Label","FLD_ZONE"]) as rows:
... for row in rows:
... if row[0] == "":
... row[2] = "row[3]“-”row[1]"
... row[0] = "SPECIAL"
... rows.updateRow(row)


Thank you!