FindYourLeague/read_data.py

8 lines
150 B
Python
Raw Permalink Normal View History

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