Skip to content

Instantly share code, notes, and snippets.

View bendominguez0111's full-sized avatar
🏠
Working from home

Ben Dominguez bendominguez0111

🏠
Working from home
View GitHub Profile
from sys import argv
from requests import get
import pandas as pd
from bs4 import BeautifulSoup
"""
Create virtual environment
>python -m venv venv
>source venv/bin/activate (linux/mac)
>venv\Scripts\activate
@bendominguez0111
bendominguez0111 / book_chapter_two_code_block_one.py
Last active June 2, 2020 23:32
Code for chapter two of Python for Fantasy Football.
#Official player stats for 2019
players = [{
'name': 'Julio Jones',
'catches': 99,
'targets': 157
},
{
'name': 'Davante Adams',
'catches': 83,
@bendominguez0111
bendominguez0111 / ml_post_one.ipynb
Created April 18, 2020 16:52
ml_post_one.ipynb
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.
@bendominguez0111
bendominguez0111 / webscraping.py
Last active January 26, 2023 21:58
Script to web scrape Fantasy Football data from pro-football-reference.com
from bs4 import BeautifulSoup
import pandas as pd
import requests
from sys import argv
import os
pd.options.mode.chained_assignment = None
# pd.set_option('display.max_columns', 500)
# pd.set_option('display.max_rows', 500)