minor stuff

This commit is contained in:
eneller
2024-08-14 01:02:41 +02:00
parent 3be8adb748
commit cbbe50878c
2 changed files with 4 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ data.sort_values(by='note', inplace=True)
acc_note = 0.0
acc_lp = 0
# the use of iterrows and all iteration over dataframes is discouraged for performance reasons
for index, row in data.iterrows():
for _ , row in data.iterrows():
if acc_lp + row['lp'] < target_lp:
acc_lp = acc_lp + row['lp']
acc_note = acc_note + row['lp'] * row['note']