Original User: niklas.norrthonThat works perfect. Like Python should! Amazing. I choose this method, because I wanted to use the ModelBuilder. Not sure if a cursor would work in this case.
A cursor would work just as well (untested):
symbol_weights = {
6: 1.2,
85: 1.5,
2: 1.0,
42: 1.8,
58: 2.0,
}
cur = arcpy.UpdateCursor(my_feature_class)
for row in cur:
row.Weight = symbol_weights[row.SYMBOL]
cur.UpdateRow(row)