BruceJohnJennerLawso / scrap

Hockey stats analysis done by scraping the data to a csv file, then processing/analyzing them with more python.
3 stars 0 forks source link

Franchise classification #10

Open BruceJohnJennerLawso opened 8 years ago

BruceJohnJennerLawso commented 8 years ago

want some way for a team object to identify which franchise it belongs to, something like a function call that takes a list of possible answers, then returns the top one if theres a match, an empty string if not.

ie getFranchise(franchises):

where franchises looks like

[['Seekers', 'SEEKZERS'], ['Pucked Up', 'Pucked UP'], ['The Mighty Dads']]