You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mohamed Salah and Wataru Endo are in the database players.csv, but with my code below, they don't appaer in my list of players tag and names :
dict_joueurs = {}
tag_joueurs = []
nom_joueurs = []
for i in range(len(players)):
tag = nom = 0
if (players.loc[i,"current_club_id"] == int(tag_equipe)) and (players.loc[i,"last_season"]==annee):
tag = players.loc[i,"player_id"]
nom = players.loc[i,"name"]
if nom not in dict_joueurs:
dict_joueurs[nom]=tag
dict_joueurs.pop(0)
dict_joueurs = sorted(dict_joueurs.items())
for paire in dict_joueurs:
tag_joueurs.append(paire[1])
nom_joueurs.append(paire[0])
print(dict_joueurs)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Mohamed Salah and Wataru Endo are in the database players.csv, but with my code below, they don't appaer in my list of players tag and names :
Can someone tell me why ?
Beta Was this translation helpful? Give feedback.
All reactions