In the homework, we are asked to find the id which has multiple matchings. Just like in database, there is one to many relationships.
I could only specify that both ids do not match. Since the distinct count number differs.
import numpy as np
import pandas as pd
player_att = pd.read_csv('Player_Attributes.csv',sep = ',')
player_att.head()
player_att.player_fifa_api_id.nunique()
player_att.player_api_id.nunique()
For the above codes, the results are 11062, 11060. That is to say the two id numbers do not match. But how to find the one with multiple fifa_api_id?