I am trying to update a field in a database, row by row, with a list of values. The following script works fine, but I can't help thinking there might be a more efficient (or pretty) way to update rows with items from a list. Here, I've just set a counter and updated the rows with the changing index item of the list.
listAreas = [1234.45, 3456.67, 6547.87, 536.76, 34.10]
indexIncr = 0
with arcpy.da.UpdateCursor(databasePath, "ColumnName") as cursorArea:
for rowArea in cursorArea:
rowArea[0] = listAreas[indexIncr]
cursorArea.updateRow(rowArea)
indexIncr+=1