cleaned up

main
Taylor Hood 2 years ago
parent 879d08ffaf
commit ebe3e6e174

@ -86,7 +86,7 @@ def parse_game(url, html):
table = soup.find("table") table = soup.find("table")
df = pd.read_html(str(table))[0] df = pd.read_html(str(table))[0]
df = df.replace("---", 0) df = df.replace("---", 0)
df.iloc[:, 0] = df.iloc[:, 0].str.replace("$", "") # noqa: E231 df.iloc[:, 0] = df.iloc[:, 0].str.replace("$", "")
prizes = [] prizes = []
for prize, total, claimed in [list(r[1]) for r in df.iterrows()]: for prize, total, claimed in [list(r[1]) for r in df.iterrows()]:
match = re.match(r"\$?([\d,]+).*wk.*", prize) match = re.match(r"\$?([\d,]+).*wk.*", prize)

Loading…
Cancel
Save