Spaces:
Running
Running
Commit
·
deaf937
1
Parent(s):
3b58edf
Debug
Browse files
Source/Predict/predict.py
CHANGED
@@ -72,8 +72,8 @@ def get_one_week(home,away,season,week):
|
|
72 |
away_df.columns = [i.replace('.Away','') + '.Away' for i in away_df.columns]
|
73 |
|
74 |
drop_columns = ['game_id', 'Season', 'home_team', 'away_team', 'game_date']
|
75 |
-
print(home_df)
|
76 |
-
print(away_df)
|
77 |
df = home_df.drop(columns=drop_columns).merge(away_df.drop(columns=[i+'.Away' for i in drop_columns]), left_on='GP', right_on='GP.Away')
|
78 |
return df
|
79 |
except ValueError:
|
|
|
72 |
away_df.columns = [i.replace('.Away','') + '.Away' for i in away_df.columns]
|
73 |
|
74 |
drop_columns = ['game_id', 'Season', 'home_team', 'away_team', 'game_date']
|
75 |
+
print(home_df.columns)
|
76 |
+
print(away_df.columns)
|
77 |
df = home_df.drop(columns=drop_columns).merge(away_df.drop(columns=[i+'.Away' for i in drop_columns]), left_on='GP', right_on='GP.Away')
|
78 |
return df
|
79 |
except ValueError:
|