FindYourLeague/read_data.py
2021-12-08 21:18:20 +01:00

8 lines
147 B
Python

import pandas as pd
def get_leagues_data():
df = pd.read_csv('leagues.csv', sep=";", header=0)
return [row for _, row in df.iterrows()]