cleaned up

main
Taylor Hood 2 years ago
parent abf7c1f103
commit 879d08ffaf

@ -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("$", "", regex=False) # noqa: E231 df.iloc[:, 0] = df.iloc[:, 0].str.replace("$", "") # noqa: E231
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