Spaces:
Sleeping
Sleeping
James McCool
commited on
Commit
·
c20c526
1
Parent(s):
480be77
Update dupes calculation in app.py to incorporate scaling factor based on strength variable. This change enhances the accuracy of the Dupes metric by adjusting the calculation to reflect contest size dynamics, improving player ownership analysis and contest lineup simulations.
Browse files
app.py
CHANGED
@@ -617,7 +617,7 @@ with tab1:
|
|
617 |
0,
|
618 |
np.round(Sim_Winner_Frame['dupes_calc'], 0) - 1
|
619 |
)
|
620 |
-
Sim_Winner_Frame['Dupes'] = np.round(Sim_Winner_Frame['Dupes'], 0)
|
621 |
Sim_Winner_Frame = Sim_Winner_Frame.drop(columns=dup_count_columns)
|
622 |
Sim_Winner_Frame = Sim_Winner_Frame.drop(columns=own_columns)
|
623 |
Sim_Winner_Frame = Sim_Winner_Frame.drop(columns=calc_columns)
|
|
|
617 |
0,
|
618 |
np.round(Sim_Winner_Frame['dupes_calc'], 0) - 1
|
619 |
)
|
620 |
+
Sim_Winner_Frame['Dupes'] = np.round(Sim_Winner_Frame['Dupes'] * ((500000 / strength_var1) / 2), 0)
|
621 |
Sim_Winner_Frame = Sim_Winner_Frame.drop(columns=dup_count_columns)
|
622 |
Sim_Winner_Frame = Sim_Winner_Frame.drop(columns=own_columns)
|
623 |
Sim_Winner_Frame = Sim_Winner_Frame.drop(columns=calc_columns)
|