Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -138,7 +138,7 @@ summary_2023.player_id = summary_2023.player_id.astype(int)
|
|
138 |
|
139 |
yahoo_to_nhl_df = pd.read_csv('yahoo_to_nhl.csv')
|
140 |
|
141 |
-
yahoo_to_nhl_df.merge(df_2023,left_on='player_id_yahoo',right_on='player_id')
|
142 |
summary_2023 = summary_2023.merge(yahoo_to_nhl_df,left_on='player_id',right_on='nhl_id',suffixes=['','_yahoo'],how='left')
|
143 |
|
144 |
summary_2023 = summary_2023.merge(right=player_games.drop_duplicates(subset=['player_id'],keep='last')[['player_id','Position','Team']],left_on=['player_id'],right_on=['player_id'],how='left')
|
|
|
138 |
|
139 |
yahoo_to_nhl_df = pd.read_csv('yahoo_to_nhl.csv')
|
140 |
|
141 |
+
yahoo_to_nhl_df = yahoo_to_nhl_df.merge(df_2023,left_on='player_id_yahoo',right_on='player_id')
|
142 |
summary_2023 = summary_2023.merge(yahoo_to_nhl_df,left_on='player_id',right_on='nhl_id',suffixes=['','_yahoo'],how='left')
|
143 |
|
144 |
summary_2023 = summary_2023.merge(right=player_games.drop_duplicates(subset=['player_id'],keep='last')[['player_id','Position','Team']],left_on=['player_id'],right_on=['player_id'],how='left')
|