Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -291,9 +291,9 @@ yahoo_df_scrape = pd.read_csv('df_2023_small.csv',index_col=[0])
|
|
291 |
|
292 |
yahoo_df_scrape = pd.read_csv('df_2023_small.csv',index_col=[0],usecols=range(12))
|
293 |
yahoo_df_scrape.percent_owned = yahoo_df_scrape.percent_owned.astype(float)
|
294 |
-
yahoo_df_scrape.columns = ['
|
295 |
-
|
296 |
|
|
|
297 |
#yahoo_df_scrape = pd.DataFrame(total_list,columns=['yahoo_id','idx','full','first','last','average_pick','average_auction_cost','projected_auction_value','position','team','percent_owned'])
|
298 |
|
299 |
yahoo_final_df = yahoo_df_scrape.merge(right=yahoo_to_nhl,left_on='yahoo_id',right_index=True,how='left',suffixes=['','_x'])
|
@@ -307,7 +307,7 @@ player_games.loc[player_games.position.isna(),'position'] = player_games.loc[pla
|
|
307 |
|
308 |
player_games.position = player_games.position.replace({'L':'LW','R':'RW'})
|
309 |
print('Jack Hughes',player_games[player_games.Player == 'Jack Hughes'].percent_owned)
|
310 |
-
|
311 |
|
312 |
|
313 |
player_games['S_H_B'] = player_games['Shots'] + player_games['Hits'] + player_games['Shots Blocked']
|
|
|
291 |
|
292 |
yahoo_df_scrape = pd.read_csv('df_2023_small.csv',index_col=[0],usecols=range(12))
|
293 |
yahoo_df_scrape.percent_owned = yahoo_df_scrape.percent_owned.astype(float)
|
294 |
+
yahoo_df_scrape.columns = ['idx','yahoo_id','full','first','last','average_pick','average_auction_cost','projected_auction_value','position','team','percent_owned']
|
|
|
295 |
|
296 |
+
#percent_roster_dict = yahoo_df_scrape.
|
297 |
#yahoo_df_scrape = pd.DataFrame(total_list,columns=['yahoo_id','idx','full','first','last','average_pick','average_auction_cost','projected_auction_value','position','team','percent_owned'])
|
298 |
|
299 |
yahoo_final_df = yahoo_df_scrape.merge(right=yahoo_to_nhl,left_on='yahoo_id',right_index=True,how='left',suffixes=['','_x'])
|
|
|
307 |
|
308 |
player_games.position = player_games.position.replace({'L':'LW','R':'RW'})
|
309 |
print('Jack Hughes',player_games[player_games.Player == 'Jack Hughes'].percent_owned)
|
310 |
+
player_games.percent_owned = player_games.percent_owned.fillna(0)
|
311 |
|
312 |
|
313 |
player_games['S_H_B'] = player_games['Shots'] + player_games['Hits'] + player_games['Shots Blocked']
|