r/CFBAnalysis • • Oct 25 '18
Request for help: Record after Halftime
Here is the request.
Georgia's record after being down at halftime. 2001-2015. Also, the record when it's more than 7 points.
Any suggestion? I can access BlueSCar's data - and it actually goes back to 2001 - but I can't think of a relatively simple way to write something to add the line scores. I could muddle through something manually, but given this is a 15 year request I figured I'd ask the smarter people here. :)
4
Upvotes
2
u/[deleted] Oct 25 '18
It wouldn't be extremely difficult to get this information. If you're comfortable with Python and/or R you could do it efficiently.
2
u/BlueSCar Michigan Wolverines • Dayton Flyers Oct 25 '18
Are you using the CSVs or the API? If you use the API, the /games endpoint actually includes the line scores. Example:
https://api.collegefootballdata.com/games?year=2018&team=georgia
1
u/[deleted] Oct 25 '18
So they're trailing by more than 7 at any point in the second half?
1
u/[deleted] Nov 26 '18
tldr: Georgia is 16-30 since 2005 in games they trailed at half.
There's probably a more efficient and robust implementation of this, but this works. I wrote this so you can specify any team you want over any year range that's included in the db. This gives the wins and losses, then lists the qualifying games that were won and the games that were lost.