Primary competition visual

Laduma Analytics Football League Winners Prediction Challenge by #ZindiWeekendz

Helping Africa
$300 USD
Completed (over 4 years ago)
Prediction
251 joined
113 active
Starti
03 Jun 22
Closei
05 Jun 22
Reveali
05 Jun 22
Contradiction between variable definition and actual dataset values.....
Notebooks · 5 Jun 2022, 05:27 · 2

there is misalignment between what varible definition defines what is on dataset columns and actual values on data set columns ie

In variable definition :

Team --- > Name of home team

but the validity of this statment is not always true in some cases like :

train_df[(train_df['Season'] == 1) & (train_df['Game_ID'] == 'ID_KAG4KAE9')]['Team'].unique()

can i get some explanation .......?

Discussion 2 answers
User avatar

another interesting add_on :

train_df[(train_df['Season'] == 1) & (train_df['Game_ID'] == 'ID_KAG4KAE9')]['Opposition_Team'].unique()

how can "oppostion team " and "Team" returns the same unique lists?.......

Upvotes 0
User avatar
DoubleAgentAmbassador
Zindi Ambassador

Let's assume that we have three teams in a league named A, B and C.

First match A vs B

Second match B vs C

Third match C vs A

Each team has played two matches. The list of teams before vs (team) is the same as the list of teams after vs (opposition). This is my understanding of the setup hence the same unique list.

I could be wrong and I am very much open to further discussion on this.

Upvotes 0