Skip to content

Instantly share code, notes, and snippets.

View lollipoppizza's full-sized avatar

Alexander Ryan lollipoppizza

View GitHub Profile
# open csv file
file = open("X.csv")
fileReader = csv.reader(file)
# sum score
for row in fileReader:
# sum scores for rows 10 to 90 in columns 2 and 3
if 8 < fileReader.line_num < 90:
score1 += int(row[1])
score2 += int(row[2])
import matplotlib.pyplot as plt
import shelve
from collections import OrderedDict
d = shelve.open("driverCountFriday")
data = d
print(tuple(data))
import praw
from collections import deque
from time import sleep
from datetime import date
import calendar
import shelve
r = praw.Reddit("Python:SportsTeamBiasAnalyser:1.0 (by /u/lollipoppizza)")
import re
import shelve
def cleanup(words): # Clean up the input
if "s" in words:
words.remove("s")
if "is" in words:
words.remove("is")