James McCool commited on
Commit
cce21a1
·
1 Parent(s): 03bbfb7

replaced PRA with individual stat sums, fixed PRA objects

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -447,8 +447,8 @@ with tab5:
447
  df['Median'] = df['Assists']
448
  elif prop == "NBA_GAME_PLAYER_3_POINTERS_MADE" or prop == "3-Pointers Made":
449
  df['Median'] = df['3P']
450
- elif prop == "NBA_GAME_PLAYER_POINTS_REBOUNDS_ASSISTS" or prop == "Points + Rebounds + Assists":
451
- df['Median'] = df['PRA']
452
  elif prop == "NBA_GAME_PLAYER_POINTS_REBOUNDS" or prop == "Points + Rebounds":
453
  df['Median'] = df['Points'] + df['Rebounds']
454
  elif prop == "NBA_GAME_PLAYER_POINTS_ASSISTS" or prop == "Points + Assists":
@@ -547,8 +547,8 @@ with tab5:
547
  prop_df = prop_df.loc[prop_df['prop_type'] == '3-Pointers Made']
548
  elif prop_type_var == "NBA_GAME_PLAYER_POINTS_REBOUNDS_ASSISTS":
549
  prop_df = prop_df.loc[prop_df['prop_type'] == 'NBA_GAME_PLAYER_POINTS_REBOUNDS_ASSISTS']
550
- elif prop_type_var == "Points + Rebounds + Assists":
551
- prop_df = prop_df.loc[prop_df['prop_type'] == 'Points + Rebounds + Assists']
552
  elif prop_type_var == "NBA_GAME_PLAYER_POINTS_REBOUNDS":
553
  prop_df = prop_df.loc[prop_df['prop_type'] == 'NBA_GAME_PLAYER_POINTS_REBOUNDS']
554
  elif prop_type_var == "Points + Rebounds":
@@ -588,8 +588,8 @@ with tab5:
588
  df['Median'] = df['Assists']
589
  elif prop_type_var == "NBA_GAME_PLAYER_3_POINTERS_MADE" or prop_type_var == "3-Pointers Made":
590
  df['Median'] = df['3P']
591
- elif prop_type_var == "NBA_GAME_PLAYER_POINTS_REBOUNDS_ASSISTS" or prop_type_var == "Points + Rebounds + Assists":
592
- df['Median'] = df['PRA']
593
  elif prop_type_var == "NBA_GAME_PLAYER_POINTS_REBOUNDS" or prop_type_var == "Points + Rebounds":
594
  df['Median'] = df['Points'] + df['Rebounds']
595
  elif prop_type_var == "NBA_GAME_PLAYER_POINTS_ASSISTS" or prop_type_var == "Points + Assists":
 
447
  df['Median'] = df['Assists']
448
  elif prop == "NBA_GAME_PLAYER_3_POINTERS_MADE" or prop == "3-Pointers Made":
449
  df['Median'] = df['3P']
450
+ elif prop == "NBA_GAME_PLAYER_POINTS_REBOUNDS_ASSISTS" or prop == "Points + Assists + Rebounds":
451
+ df['Median'] = df['Points'] + df['Rebounds'] + df['Assists']
452
  elif prop == "NBA_GAME_PLAYER_POINTS_REBOUNDS" or prop == "Points + Rebounds":
453
  df['Median'] = df['Points'] + df['Rebounds']
454
  elif prop == "NBA_GAME_PLAYER_POINTS_ASSISTS" or prop == "Points + Assists":
 
547
  prop_df = prop_df.loc[prop_df['prop_type'] == '3-Pointers Made']
548
  elif prop_type_var == "NBA_GAME_PLAYER_POINTS_REBOUNDS_ASSISTS":
549
  prop_df = prop_df.loc[prop_df['prop_type'] == 'NBA_GAME_PLAYER_POINTS_REBOUNDS_ASSISTS']
550
+ elif prop_type_var == "Points + Assists + Rebounds":
551
+ prop_df = prop_df.loc[prop_df['prop_type'] == 'Points + Assists + Rebounds']
552
  elif prop_type_var == "NBA_GAME_PLAYER_POINTS_REBOUNDS":
553
  prop_df = prop_df.loc[prop_df['prop_type'] == 'NBA_GAME_PLAYER_POINTS_REBOUNDS']
554
  elif prop_type_var == "Points + Rebounds":
 
588
  df['Median'] = df['Assists']
589
  elif prop_type_var == "NBA_GAME_PLAYER_3_POINTERS_MADE" or prop_type_var == "3-Pointers Made":
590
  df['Median'] = df['3P']
591
+ elif prop_type_var == "NBA_GAME_PLAYER_POINTS_REBOUNDS_ASSISTS" or prop_type_var == "Points + Assists + Rebounds":
592
+ df['Median'] = df['Points'] + df['Rebounds'] + df['Assists']
593
  elif prop_type_var == "NBA_GAME_PLAYER_POINTS_REBOUNDS" or prop_type_var == "Points + Rebounds":
594
  df['Median'] = df['Points'] + df['Rebounds']
595
  elif prop_type_var == "NBA_GAME_PLAYER_POINTS_ASSISTS" or prop_type_var == "Points + Assists":