From 82095a7f0a38b8f9c97580ed25827759d539d291 Mon Sep 17 00:00:00 2001 From: phillynch7 Date: Sun, 2 Sep 2018 10:23:45 -0400 Subject: [PATCH] Fix nfl boxscore over_under parsing Fixes #9 --- sportsref/nfl/boxscores.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sportsref/nfl/boxscores.py b/sportsref/nfl/boxscores.py index 060d05b..840058a 100644 --- a/sportsref/nfl/boxscores.py +++ b/sportsref/nfl/boxscores.py @@ -231,7 +231,7 @@ def over_under(self): giTable = sportsref.utils.parse_info_table(table) if 'over_under' in giTable: ou = giTable['over_under'] - return float(ou.split()[0]) + return float(re.findall(r'(\d+\.?\d?)\(.+\)', ou)[0]) else: return None