James McCool commited on
Commit
e191cdb
·
1 Parent(s): d2d39d3

changed variable designation in prop sim

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -334,13 +334,13 @@ with tab3:
334
 
335
  df.replace("", 0, inplace=True)
336
 
337
- if prop == 'NHL_GAME_PLAYER_POINTS':
338
  df['Median'] = df['Player TP']
339
- elif prop == 'NHL_GAME_PLAYER_SHOTS_ON_GOAL':
340
  df['Median'] = df['Player SOG']
341
- elif prop == 'NHL_GAME_PLAYER_ASSISTS':
342
  df['Median'] = df['Player Assists']
343
- elif prop == 'NHL_GAME_PLAYER_BLOCKED_SHOTS':
344
  df['Median'] = df['Player Blocks']
345
 
346
  flex_file = df
 
334
 
335
  df.replace("", 0, inplace=True)
336
 
337
+ if prop == 'points':
338
  df['Median'] = df['Player TP']
339
+ elif prop == 'SOG':
340
  df['Median'] = df['Player SOG']
341
+ elif prop == 'assists':
342
  df['Median'] = df['Player Assists']
343
+ elif prop == 'blocked_shots':
344
  df['Median'] = df['Player Blocks']
345
 
346
  flex_file = df