Skip to content

Instantly share code, notes, and snippets.

Introduction to College Football Data Using Python

If you are reading this - you enjoy college football. Or you may just enjoy working with different types of data. Hopefully, you're like me and like both. I am self-taught in Python, so I am by no means the end all be all expert of how to approach things, but if I can figure it out, you can to.

This guide is a fork of Parker Flemings (@statsowar on Twitter) guide "Introduction to College Football Data with R and cfbscrapR". We will go through the same excercises he did, simply with the Python equivalent to his R masterpiece.

If you have any questions - or see any errors - shoot me a tweet @GJMcClintock. This is very pragmagtically done - if it works, it works. None of what I presently deal with is very resource intensive, so I am sure there are much more efficient ways to get the job done. If you have suggestions on tha

@Engy-22
Engy-22 / CFBGraphs.md
Created March 30, 2020 03:26
Adding Logos To College Football Graphs
title author date output
Making Graphs with CFB Logos
Parker Fleming @statsowar
1/24/2020
html_document

College Football Graphs with R

@Engy-22
Engy-22 / Introduction to College Football Data with R.md
Created March 30, 2020 03:10
Introduction to College Football Data with R and cfbscrapR
title author date output
Introduction to College Football Analytics with R
Parker Fleming @statsowar
1/10/2020
pdf_document html_document
default
default

Introduction to College Football Data with R and cfbscrapR

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Engy-22
Engy-22 / nflscrapr.md
Created March 29, 2020 21:57 — forked from guga31bb/nflscrapr.md
Simple guide for using nflscrapR

Basic nflscrapR tutorial

I get a lot of questions about how to get nflscrapR up and running. This guide is intended to help new users build interesting tables or charts from the ground up, taking the raw nflscrapR data.

Quick word if you're new to programming: all of this is happening in R. Obviously, you need to install R on your computer to do any of this. Make sure you save what you're doing in a script (in R, File --> New script) so you can save your work and run multiple lines of code at once. To run code from a script, highlight what you want, right click, and select Run line. As you go through your R journey, you might get stuck and have to google a bunch of things, but that's totally okay and normal. That's how I wrote this thing!

A huge thank you to Josh Hornsby (@Josh_ADHD) and Zach Feldman (@ZachFeldman3) for sharing code snippets for me to work with, and of course to the nflscrapR team ([Maksim Horowitz](https://twit

##################################
# If this is your first time working with R,
# tidyverse, devtools, remotes, ggimage, cfbscrapR, or GT:
# Uncomment (highlight and Ctrl-Shift-C)
# and install by running (highlight and Ctrl-C) the below six lines as necessary
# install.packages("tidyverse")
# install.packages("devtools")
# install.packages("remotes")
# install.packages("ggimage")
# devtools::install_github("meysubb/cfbscrapR")