I want to list through items in column 2 named 'Teams'
I tried this..
for team in df['Teams']:
also tried
for team in df['Teams'].values:
I want to list through items in column 2 named 'Teams'
I tried this..
for team in df['Teams']:
also tried
for team in df['Teams'].values:
Say your 'df' looks like :
> Team Score
0 Cats 9
1 Dogs 7
You can iterate through the column 'Team' by doing:
for i in df.get('Team'):
print(i)
> Cats
Dogs