We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AT
In [38]: #Extract necessary features from the data file feature_table = df.iloc[:,:23] print(table)
#Full Time Result(FTR), Home Shots on Target(HST), Away Shots on Target(AST), Home Corners(HC), Away Corners(AC) feature_table = feature_table[['HomeTeam','AwayTeam','FTR','HST','AST','HC','AC']] print(feature_table) #Home Attacking Strength(HAS), Home Defensive Strength(HDS), Away Attacking Strength(AAS), Away Defensive Strength(ADS) f_HAS = [] f_HDS = [] f_AAS = [] f_ADS = [] for index,row in feature_table.iterrows(): f_HAS.append(table[table['Team'] == row['HomeTeam']]['HAS'].values[0]) f_HDS.append(table[table['Team'] == row['HomeTeam']]['HDS'].values[0]) f_AAS.append(table[table['Team'] == row['AwayTeam']]['AAS'].values[0]) f_ADS.append(table[table['Team'] == row['AwayTeam']]['ADS'].values[0])
feature_table['HAS'] = f_HAS feature_table['HDS'] = f_HDS feature_table['AAS'] = f_AAS feature_table['ADS'] = f_ADS feature_table
APPAER THIS ERROR AND I M NOT PROCEDED
IndexError Traceback (most recent call last) in 10 f_ADS = [] 11 for index,row in feature_table.iterrows(): ---> 12 f_HAS.append(table_16[table_16['Team'] == row['HomeTeam']]['HAS'].values[0]) 13 f_HDS.append(table_16[table_16['Team'] == row['HomeTeam']]['HDS'].values[0]) 14 f_AAS.append(table_16[table_16['Team'] == row['AwayTeam']]['AAS'].values[0])
The text was updated successfully, but these errors were encountered:
No branches or pull requests
AT
In [38]:
#Extract necessary features from the data file
feature_table = df.iloc[:,:23]
print(table)
#Full Time Result(FTR), Home Shots on Target(HST), Away Shots on Target(AST), Home Corners(HC), Away Corners(AC)
feature_table = feature_table[['HomeTeam','AwayTeam','FTR','HST','AST','HC','AC']]
print(feature_table)
#Home Attacking Strength(HAS), Home Defensive Strength(HDS), Away Attacking Strength(AAS), Away Defensive Strength(ADS)
f_HAS = []
f_HDS = []
f_AAS = []
f_ADS = []
for index,row in feature_table.iterrows():
f_HAS.append(table[table['Team'] == row['HomeTeam']]['HAS'].values[0])
f_HDS.append(table[table['Team'] == row['HomeTeam']]['HDS'].values[0])
f_AAS.append(table[table['Team'] == row['AwayTeam']]['AAS'].values[0])
f_ADS.append(table[table['Team'] == row['AwayTeam']]['ADS'].values[0])
feature_table['HAS'] = f_HAS
feature_table['HDS'] = f_HDS
feature_table['AAS'] = f_AAS
feature_table['ADS'] = f_ADS
feature_table
APPAER THIS ERROR AND I M NOT PROCEDED
IndexError Traceback (most recent call last)
in
10 f_ADS = []
11 for index,row in feature_table.iterrows():
---> 12 f_HAS.append(table_16[table_16['Team'] == row['HomeTeam']]['HAS'].values[0])
13 f_HDS.append(table_16[table_16['Team'] == row['HomeTeam']]['HDS'].values[0])
14 f_AAS.append(table_16[table_16['Team'] == row['AwayTeam']]['AAS'].values[0])
The text was updated successfully, but these errors were encountered: