ffbot 1.2.7__tar.gz → 1.2.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ffbot-1.2.7 → ffbot-1.2.8}/PKG-INFO +1 -1
- ffbot-1.2.8/ffbot/constants.py +1 -0
- {ffbot-1.2.7 → ffbot-1.2.8}/ffbot/scraper.py +7 -2
- {ffbot-1.2.7 → ffbot-1.2.8}/ffbot.egg-info/PKG-INFO +1 -1
- ffbot-1.2.7/ffbot/constants.py +0 -1
- {ffbot-1.2.7 → ffbot-1.2.8}/LICENSE +0 -0
- {ffbot-1.2.7 → ffbot-1.2.8}/README.md +0 -0
- {ffbot-1.2.7 → ffbot-1.2.8}/ffbot/__init__.py +0 -0
- {ffbot-1.2.7 → ffbot-1.2.8}/ffbot/optimizer.py +0 -0
- {ffbot-1.2.7 → ffbot-1.2.8}/ffbot/utils.py +0 -0
- {ffbot-1.2.7 → ffbot-1.2.8}/ffbot.egg-info/SOURCES.txt +0 -0
- {ffbot-1.2.7 → ffbot-1.2.8}/ffbot.egg-info/dependency_links.txt +0 -0
- {ffbot-1.2.7 → ffbot-1.2.8}/ffbot.egg-info/requires.txt +0 -0
- {ffbot-1.2.7 → ffbot-1.2.8}/ffbot.egg-info/top_level.txt +0 -0
- {ffbot-1.2.7 → ffbot-1.2.8}/pyproject.toml +0 -0
- {ffbot-1.2.7 → ffbot-1.2.8}/setup.cfg +0 -0
- {ffbot-1.2.7 → ffbot-1.2.8}/setup.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
VERSION = "1.2.8"
|
|
@@ -128,8 +128,10 @@ def scrape(league, is_IDP: bool = False):
|
|
|
128
128
|
df2 = pd.read_html(StringIO(html))[0]
|
|
129
129
|
for _, row2 in df2.iterrows():
|
|
130
130
|
week = "Week {}".format(row2["Week"])
|
|
131
|
-
points = row2
|
|
132
|
-
if points
|
|
131
|
+
points = row2.get("Fan Pts")
|
|
132
|
+
if points is None:
|
|
133
|
+
continue
|
|
134
|
+
elif points[0] == "*":
|
|
133
135
|
# Game hasn't occured yet
|
|
134
136
|
row[week] = float(points[1:])
|
|
135
137
|
# row[week + ' projection'] = float(points[1:])
|
|
@@ -150,6 +152,9 @@ def scrape(league, is_IDP: bool = False):
|
|
|
150
152
|
tqdm.pandas(desc="Scraping weekly forecasts")
|
|
151
153
|
df = df.progress_apply(get_projections, axis=1)
|
|
152
154
|
|
|
155
|
+
# Remove players without projections
|
|
156
|
+
df = df[~pd.isna(df["Week 1"])]
|
|
157
|
+
|
|
153
158
|
# Reorder columns
|
|
154
159
|
columns = list(df.columns)
|
|
155
160
|
columns[2], columns[1] = columns[1], columns[2]
|
ffbot-1.2.7/ffbot/constants.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
VERSION = "1.2.7"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|