Spaces:
Running
Running
James McCool
commited on
Commit
·
e3cbf81
1
Parent(s):
9a17dab
Refactor percentile keys in app.py for improved clarity. Changed percentile labels from 'P10', 'P25', 'P50', 'P75', 'P90' to '10%', '25%', '50%', '75%', '90%' to enhance readability and user understanding of statistical projections for player performance metrics.
Browse files
app.py
CHANGED
@@ -325,11 +325,11 @@ if st.button("Run"):
|
|
325 |
'Player': idx,
|
326 |
'Position': row['position'],
|
327 |
'Stat': 'Kills',
|
328 |
-
'
|
329 |
-
'
|
330 |
-
'
|
331 |
-
'
|
332 |
-
'
|
333 |
})
|
334 |
# Repeat for other stats
|
335 |
for stat, name in [('Death_Proj', 'Deaths'), ('Assist_Proj', 'Assists'), ('CS_Proj', 'CS')]:
|
@@ -337,11 +337,11 @@ if st.button("Run"):
|
|
337 |
'Player': idx,
|
338 |
'Position': row['position'],
|
339 |
'Stat': name,
|
340 |
-
'
|
341 |
-
'
|
342 |
-
'
|
343 |
-
'
|
344 |
-
'
|
345 |
})
|
346 |
|
347 |
sim_df = pd.DataFrame(sim_results)
|
|
|
325 |
'Player': idx,
|
326 |
'Position': row['position'],
|
327 |
'Stat': 'Kills',
|
328 |
+
'10%': percentiles['Kill_Proj'][0],
|
329 |
+
'25%': percentiles['Kill_Proj'][1],
|
330 |
+
'50%': percentiles['Kill_Proj'][2],
|
331 |
+
'75%': percentiles['Kill_Proj'][3],
|
332 |
+
'90%': percentiles['Kill_Proj'][4]
|
333 |
})
|
334 |
# Repeat for other stats
|
335 |
for stat, name in [('Death_Proj', 'Deaths'), ('Assist_Proj', 'Assists'), ('CS_Proj', 'CS')]:
|
|
|
337 |
'Player': idx,
|
338 |
'Position': row['position'],
|
339 |
'Stat': name,
|
340 |
+
'10%': percentiles[stat][0],
|
341 |
+
'25%': percentiles[stat][1],
|
342 |
+
'50%': percentiles[stat][2],
|
343 |
+
'75%': percentiles[stat][3],
|
344 |
+
'90%': percentiles[stat][4]
|
345 |
})
|
346 |
|
347 |
sim_df = pd.DataFrame(sim_results)
|