James McCool commited on
Commit
0a08e64
1 Parent(s): 68d4dce

fixed line 673

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -524,7 +524,7 @@ with tab5:
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))
528
  players_only['Imp Under'] = players_only['Player'].map(under_dict)
529
  players_only['Under%'] = players_only[["Under", "Imp Under"]].mean(axis=1)
530
  players_only['Prop_avg'] = players_only['Prop'].mean() / 100
@@ -670,7 +670,7 @@ with tab5:
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))
674
  players_only['Imp Under'] = players_only['Player'].map(under_dict)
675
  players_only['Under%'] = players_only[["Under", "Imp Under"]].mean(axis=1)
676
  players_only['Prop_avg'] = players_only['Prop'].mean() / 100
 
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(players_only['Prop'] <= 3, 1 - players_only['poisson_var'], prop_check[prop_check < 0].count(axis=1)/float(total_sims))
528
  players_only['Imp Under'] = players_only['Player'].map(under_dict)
529
  players_only['Under%'] = players_only[["Under", "Imp Under"]].mean(axis=1)
530
  players_only['Prop_avg'] = players_only['Prop'].mean() / 100
 
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(players_only['Prop'] <= 3, 1 - players_only['poisson_var'], prop_check[prop_check < 0].count(axis=1)/float(total_sims))
674
  players_only['Imp Under'] = players_only['Player'].map(under_dict)
675
  players_only['Under%'] = players_only[["Under", "Imp Under"]].mean(axis=1)
676
  players_only['Prop_avg'] = players_only['Prop'].mean() / 100