FindYourLeague/read_data.py

8 lines
147 B
Python
Raw Normal View History

2021-12-08 21:18:20 +01:00
import pandas as pd
def get_leagues_data():
df = pd.read_csv('leagues.csv', sep=";", header=0)
return [row for _, row in df.iterrows()]