import csv

def parse():

    with open('data/2017schedule.csv', newline='') as csvfile:
        reader = csv.reader(csvfile)
        teams = {}
        first = True
        for row in reader:
            #if/elif statements are to account for format of dataset as csv.reader
            #returns lists of strings
            if(len(row) == 5 or first == True or row[5] == ''):
                first = False
                pass
            elif(len(row) == 11):

                #Add team not already in dictionary
                if (row[4] not in teams):
                    teams[row[4]] = 0
                if (row[6] not in teams):
                    teams[row[6]] = 0

                #Add opposing teams points
                if (row[4] in teams):
                    print(row)
                    teams[row[4]] = teams[row[4]] + int(row[7])
                if (row[6] in teams):
                    teams[row[6]] = teams[row[6]] + int(row[5])



            elif(len(row) == 9):
                #Add team not already in dictionary
                if (row[2] not in teams):
                    teams[row[2]] = 0
                    pass
                if (row[4] not in teams):
                    teams[row[4]] = 0
                    pass

                #Add opposing teams points
                if (row[2] in teams):
                    teams[row[2]] = teams[row[2]] + int(row[5])

                if (row[4] in teams):
                    teams[row[4]] = teams[row[4]] + int(row[3])

    return(teams)
4dfcb1b5d251fb20450e9a75b1dbb6a21f67e16b
<mask token>

<mask token>


def parse():
    with open('data/2017schedule.csv', newline='') as csvfile:
        reader = csv.reader(csvfile)
        teams = {}
        first = True
        for row in reader:
            if len(row) == 5 or first == True or row[5] == '':
                first = False
                pass
            elif len(row) == 11:
                if row[4] not in teams:
                    teams[row[4]] = 0
                if row[6] not in teams:
                    teams[row[6]] = 0
                if row[4] in teams:
                    print(row)
                    teams[row[4]] = teams[row[4]] + int(row[7])
                if row[6] in teams:
                    teams[row[6]] = teams[row[6]] + int(row[5])
            elif len(row) == 9:
                if row[2] not in teams:
                    teams[row[2]] = 0
                    pass
                if row[4] not in teams:
                    teams[row[4]] = 0
                    pass
                if row[2] in teams:
                    teams[row[2]] = teams[row[2]] + int(row[5])
                if row[4] in teams:
                    teams[row[4]] = teams[row[4]] + int(row[3])
    return teams

import csv


def parse():
    with open('data/2017schedule.csv', newline='') as csvfile:
        reader = csv.reader(csvfile)
        teams = {}
        first = True
        for row in reader:
            if len(row) == 5 or first == True or row[5] == '':
                first = False
                pass
            elif len(row) == 11:
                if row[4] not in teams:
                    teams[row[4]] = 0
                if row[6] not in teams:
                    teams[row[6]] = 0
                if row[4] in teams:
                    print(row)
                    teams[row[4]] = teams[row[4]] + int(row[7])
                if row[6] in teams:
                    teams[row[6]] = teams[row[6]] + int(row[5])
            elif len(row) == 9:
                if row[2] not in teams:
                    teams[row[2]] = 0
                    pass
                if row[4] not in teams:
                    teams[row[4]] = 0
                    pass
                if row[2] in teams:
                    teams[row[2]] = teams[row[2]] + int(row[5])
                if row[4] in teams:
                    teams[row[4]] = teams[row[4]] + int(row[3])
    return teams

import csv

def parse():

    with open('data/2017schedule.csv', newline='') as csvfile:
        reader = csv.reader(csvfile)
        teams = {}
        first = True
        for row in reader:
            #if/elif statements are to account for format of dataset as csv.reader
            #returns lists of strings
            if(len(row) == 5 or first == True or row[5] == ''):
                first = False
                pass
            elif(len(row) == 11):

                #Add team not already in dictionary
                if (row[4] not in teams):
                    teams[row[4]] = 0
                if (row[6] not in teams):
                    teams[row[6]] = 0

                #Add opposing teams points
                if (row[4] in teams):
                    print(row)
                    teams[row[4]] = teams[row[4]] + int(row[7])
                if (row[6] in teams):
                    teams[row[6]] = teams[row[6]] + int(row[5])



            elif(len(row) == 9):
                #Add team not already in dictionary
                if (row[2] not in teams):
                    teams[row[2]] = 0
                    pass
                if (row[4] not in teams):
                    teams[row[4]] = 0
                    pass

                #Add opposing teams points
                if (row[2] in teams):
                    teams[row[2]] = teams[row[2]] + int(row[5])

                if (row[4] in teams):
                    teams[row[4]] = teams[row[4]] + int(row[3])

    return(teams)