Last active
November 26, 2018 16:12
-
-
Save BlackArbsCEO/583c0671742790205d42 to your computer and use it in GitHub Desktop.
Simple Linear Regression comparing NFL Quarterback Win Percentage vs. Touchdown to Interception ratio using data collected from Pro-football-reference.com
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Kudos! This is a great project, but I would greatly simplify the code. Did you know, for instance, that df[chosen_columns] is equivalent to your df.iloc[:,chosen_columns]? Also on cell two I would use list comprehensions and type
dats = [p.read_excel(os.path.join(ROOT, folders[0],'\qb_passing_stats.xlsx', sheetname=str(year),...)) for year in range(2012,2016)]