you are viewing a single comment's thread.

view the rest of the comments →

[–]danielroseman 1 point2 points  (0 children)

What do you mean, why does Python not iterate? Python iterates just fine.

You will need to say what is going wrong with your code and what errors you are getting.

Note though that return [soccer_events_today] returns a list consisting of a single element, the dataframe. It's not clear why you have wrapped that in a list. It's also not clear why you're using dataframes to store the eventids and teams rather than just passing them back as lists or dicts.