This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from matplotlib import pyplot as plt | |
plt.style.use("fivethirtyeight") | |
COLORS = ['#456789', '#894567', '#678945', '#3B3D4B', '#FF8181'] | |
# Create data | |
x4 = ['$50K (Median Salary)', '$1 Million', '$1 Billion'] | |
y4 = [50000, 1000000, 1000000000] | |
# Create a figure and axis |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
# Started by Googling "World Golf Rankings" | |
# Clicked on 1st site I found | |
# Needed to expand the ranking table to "all" | |
data = pd.read_html('http://www.owgr.com/ranking?pageNo=1&pageSize=All&country=All') | |
# pd.read_html will return a list of data frames | |
# usually you need to go through this list to find the data | |
# you are looking for |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import os | |
from bs4 import BeautifulSoup | |
# The below gist is where this file lives | |
#https://gist.github.com/jbarton311/df1f5e876ff97eb848a41edcbdcb5e6c | |
import spotify_pulls as sp | |
# Local file that contains API keys and secrets | |
from config import Config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import os | |
import logging | |
# Local file that contains API keys and secrets | |
from config import Config | |
# create logger | |
logger = logging.getLogger(__file__) | |
logger.setLevel(logging.DEBUG) |