You could do something like this
sums = []
for i in range(len(df_stats)):
min_v, max_v = df_stats["Rating_Threshold_Low"].values()[i], df_stats["Rating_Threshold_High"].values()[i]
values = []
for z in range(min_v, max_v+1):
x = df_ratings[str(z)][i]
values.append(x)
sums.append(sum(values))
df_stats["Rating_Threshold_Sum"] = sums
This is really complicated and there is probably a better way to do it but it should work.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…