This file contains 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 | |
import re | |
from urllib.request import urlopen | |
from bs4 import BeautifulSoup as soup | |
from datetime import datetime as dt | |
class ESPN_FFL(object): | |
"""Helper class for pulling ESPN Fantasy Football stats for a given season. |
This file contains 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 os | |
import pandas as pd | |
from comtypes.client import CreateObject, GetActiveObject | |
class OutlookInstance(): | |
"""Class to help with MS Outlook interoperability | |
Attributes: | |
outlook (comtypes.POINTER(_Application)): MS Outlook Application |
This file contains 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 xml.etree.ElementTree as ET | |
from collections import OrderedDict | |
def gen_XML(dFrame, subelement): | |
"""Function to generate an XML string from a provided pandas DataFrame | |
# Arguments | |
dFrame (pandas.DataFrame): DataFrame to be converted to an XML string | |
subelement (str): Subelement of root to be used...can be just about anything |
This file contains 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 tkinter as tk | |
import pandas as pd | |
from tkinter import ttk | |
class Stdout_to_Widget(object): | |
"""Class to catch sys.stdout and display real-time to a tkinter Text or Listbox widget | |
Attributes: | |
widget (tkinter.Text/tkinter.Listbox): tkinter Text or Listbox to display stdout data |
This file contains 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 | |
import re | |
import os | |
import pydotplus | |
import numpy as np | |
import datetime as dt | |
from nltk.corpus import stopwords | |
from nltk.stem.porter import PorterStemmer | |
from os.path import join |