Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -250,7 +250,7 @@ print('Jack Hughes',df_2023[df_2023.full == 'Jack Hughes'])
|
|
250 |
week_dict = yahoo_weeks.set_index('Number')['Week'].sort_index().to_dict()
|
251 |
|
252 |
|
253 |
-
player_games = pd.read_csv('data/player_games_cards.csv',index_col=[0])
|
254 |
team_games = pd.read_csv('data/team_games.csv',index_col=[0])
|
255 |
|
256 |
|
|
|
250 |
week_dict = yahoo_weeks.set_index('Number')['Week'].sort_index().to_dict()
|
251 |
|
252 |
|
253 |
+
player_games = pd.read_csv('data/player_games_cards.csv',index_col=[0]).sort_values(by='date').drop_duplicates(subset=['player_id','date'])
|
254 |
team_games = pd.read_csv('data/team_games.csv',index_col=[0])
|
255 |
|
256 |
|