Spaces:
Running
Running
James McCool
commited on
Commit
·
4b8ce80
1
Parent(s):
fdea0d5
changed to players_only line 350
Browse files
app.py
CHANGED
@@ -347,9 +347,9 @@ with tab4:
|
|
347 |
players_only['10%'] = overall_file.quantile(0.1, axis=1)
|
348 |
players_only['90%'] = overall_file.quantile(0.9, axis=1)
|
349 |
if ou_var == 'Over':
|
350 |
-
players_only['beat_prop'] = np.where(
|
351 |
elif ou_var == 'Under':
|
352 |
-
players_only['beat_prop'] = np.where(
|
353 |
|
354 |
players_only['implied_odds'] = np.where(line_var <= 0, (-(line_var)/((-(line_var))+100)), 100/(line_var+100))
|
355 |
|
|
|
347 |
players_only['10%'] = overall_file.quantile(0.1, axis=1)
|
348 |
players_only['90%'] = overall_file.quantile(0.9, axis=1)
|
349 |
if ou_var == 'Over':
|
350 |
+
players_only['beat_prop'] = np.where(players_only['Prop'] <= 3, players_only['poisson_var'], overall_file[overall_file > prop_var].count(axis=1)/float(total_sims))
|
351 |
elif ou_var == 'Under':
|
352 |
+
players_only['beat_prop'] = np.where(players_only['Prop'] <= 3, 1 - players_only['poisson_var'], (overall_file[overall_file < prop_var].count(axis=1)/float(total_sims)))
|
353 |
|
354 |
players_only['implied_odds'] = np.where(line_var <= 0, (-(line_var)/((-(line_var))+100)), 100/(line_var+100))
|
355 |
|