I have the following but It's only works to populate for Field1, I would like to populate Field1 blanks or Nulls with Field2 attributes and Field2 blanks or nulls with Field1. I have the the following but it only works to populate Field1..
Maybe I am going about this the wrong way?
flds = ['FID', 'Field1','Field2'] # FID shapefile, OID geodatabase
search_feats = {f[0]:(f[1:]) for f in arcpy.da.SearchCursor(fc1,flds)}
with arcpy.da.UpdateCursor(fc1,flds) as upd_cur:
for upd_row in upd_cur:
if upd_row[0] in search_feats.keys():
if upd_row[1] == None:
upd_row[1] = search_feats[upd_row[0]][1]
upd_cur.updateRow(upd_row)
else:
pass
del upd_cur