Spaces:
Running
Running
James McCool
commited on
Commit
·
68d4dce
1
Parent(s):
fb1703c
Changed line 524
Browse files
app.py
CHANGED
@@ -521,7 +521,7 @@ with tab5:
|
|
521 |
players_only['poisson_var'] = players_only.apply(calculate_poisson, axis=1)
|
522 |
players_only['10%'] = overall_file.quantile(0.1, axis=1)
|
523 |
players_only['90%'] = overall_file.quantile(0.9, axis=1)
|
524 |
-
players_only['Over'] = np_where(
|
525 |
players_only['Imp Over'] = players_only['Player'].map(over_dict)
|
526 |
players_only['Over%'] = players_only[["Over", "Imp Over"]].mean(axis=1)
|
527 |
players_only['Under'] = np_where(overall_file['Prop'] <= 3, 1 - players_only['poisson_var'], prop_check[prop_check < 0].count(axis=1)/float(total_sims))
|
@@ -667,7 +667,7 @@ with tab5:
|
|
667 |
players_only['poisson_var'] = players_only.apply(calculate_poisson, axis=1)
|
668 |
players_only['10%'] = overall_file.quantile(0.1, axis=1)
|
669 |
players_only['90%'] = overall_file.quantile(0.9, axis=1)
|
670 |
-
players_only['Over'] = np_where(
|
671 |
players_only['Imp Over'] = players_only['Player'].map(over_dict)
|
672 |
players_only['Over%'] = players_only[["Over", "Imp Over"]].mean(axis=1)
|
673 |
players_only['Under'] = np_where(overall_file['Prop'] <= 3, 1 - players_only['poisson_var'], prop_check[prop_check < 0].count(axis=1)/float(total_sims))
|
|
|
521 |
players_only['poisson_var'] = players_only.apply(calculate_poisson, axis=1)
|
522 |
players_only['10%'] = overall_file.quantile(0.1, axis=1)
|
523 |
players_only['90%'] = overall_file.quantile(0.9, axis=1)
|
524 |
+
players_only['Over'] = np_where(players_only['Prop'] <= 3, players_only['poisson_var'], prop_check[prop_check > 0].count(axis=1)/float(total_sims))
|
525 |
players_only['Imp Over'] = players_only['Player'].map(over_dict)
|
526 |
players_only['Over%'] = players_only[["Over", "Imp Over"]].mean(axis=1)
|
527 |
players_only['Under'] = np_where(overall_file['Prop'] <= 3, 1 - players_only['poisson_var'], prop_check[prop_check < 0].count(axis=1)/float(total_sims))
|
|
|
667 |
players_only['poisson_var'] = players_only.apply(calculate_poisson, axis=1)
|
668 |
players_only['10%'] = overall_file.quantile(0.1, axis=1)
|
669 |
players_only['90%'] = overall_file.quantile(0.9, axis=1)
|
670 |
+
players_only['Over'] = np_where(players_only['Prop'] <= 3, players_only['poisson_var'], prop_check[prop_check > 0].count(axis=1)/float(total_sims))
|
671 |
players_only['Imp Over'] = players_only['Player'].map(over_dict)
|
672 |
players_only['Over%'] = players_only[["Over", "Imp Over"]].mean(axis=1)
|
673 |
players_only['Under'] = np_where(overall_file['Prop'] <= 3, 1 - players_only['poisson_var'], prop_check[prop_check < 0].count(axis=1)/float(total_sims))
|