I am trying to add variables and I get this error
costs = {}
for carrier in carriers:
for row in df_merged.to_dict('records'):
key = (row['Ship_Dt'],row['Client_Code'],row['Ship_loc'],row['Service'],row['Bill Weight'],row['Zone'],row['Resi'],carrier)
costs[key] = row[carrier]
m = Model('rate_shop_holiday')
assign=tupledict()
for i,j,k,l,m,n,o,p in costs.keys():
assign[i,j,k,l,m,n,o,p] = m.addVar(vtype=GRB.BINARY )