Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -136,7 +136,7 @@ player_games.player_id = player_games.player_id.astype(int)
|
|
136 |
summary_2023.player_id = summary_2023.player_id.astype(int)
|
137 |
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 = 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')
|
|
|
136 |
summary_2023.player_id = summary_2023.player_id.astype(int)
|
137 |
summary_2023.player_id = summary_2023.player_id.astype(int)
|
138 |
|
139 |
+
yahoo_to_nhl_df = pd.read_csv('yahoo_to_nhl.csv', encoding='unicode_escape')
|
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')
|