Skip to content

Commit 4f3c337

Browse files
committed
Fixed typos
1 parent 48a66c8 commit 4f3c337

File tree

2 files changed

+8
-103
lines changed

2 files changed

+8
-103
lines changed

Lineup Optimizer.ipynb

Lines changed: 7 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -3086,7 +3086,7 @@
30863086
},
30873087
{
30883088
"cell_type": "code",
3089-
"execution_count": 51,
3089+
"execution_count": 53,
30903090
"metadata": {},
30913091
"outputs": [
30923092
{
@@ -3166,7 +3166,7 @@
31663166
"2 PIT@CLE 01:00PM ET PIT "
31673167
]
31683168
},
3169-
"execution_count": 51,
3169+
"execution_count": 53,
31703170
"metadata": {},
31713171
"output_type": "execute_result"
31723172
}
@@ -3178,112 +3178,17 @@
31783178
"id_table=id_table[[9,10,11,12,13,14,15]]\n",
31793179
"id_table.columns=[\"position\",\"Name + ID\",\"player_name\",\"ID\",\"Salary\",\"Game Info\",\"team_name\"]\n",
31803180
"def cleanName(name):\n",
3181-
" return \n",
3181+
" #sites handle surnames/nicknames differently. We will remove them and have verified this is ok at the time of writing\n",
3182+
" return name.replace(' Jr.', '').replace(\"'\",\"\").replace(\" Sr.\",\"\")\n",
31823183
"id_table['player_name']=id_table['player_name'].apply(cleanName)\n",
31833184
"id_table.head(3)"
31843185
]
31853186
},
31863187
{
31873188
"cell_type": "code",
3188-
"execution_count": 52,
3189+
"execution_count": 54,
31893190
"metadata": {},
31903191
"outputs": [
3191-
{
3192-
"name": "stdout",
3193-
"output_type": "stream",
3194-
"text": [
3195-
"David Johnson\n",
3196-
"Zay Jones\n",
3197-
"Terrelle Pryor\n",
3198-
"Matt Ryan\n",
3199-
"C.J. Fiedorowicz\n",
3200-
"Ravens \n",
3201-
"Devonta Freeman\n",
3202-
"Sterling Shepard\n",
3203-
"Rob Gronkowski\n",
3204-
"Larry Fitzgerald\n",
3205-
"David Johnson\n",
3206-
"Matt Ryan\n",
3207-
"Marquise Goodwin\n",
3208-
"Alshon Jeffery\n",
3209-
"Kenny Britt\n",
3210-
"Ravens \n",
3211-
"Shane Vereen\n",
3212-
"Rob Gronkowski\n",
3213-
"David Johnson\n",
3214-
"Brandon Marshall\n",
3215-
"Matt Ryan\n",
3216-
"Kenny Britt\n",
3217-
"Ravens \n",
3218-
"Chris Thompson\n",
3219-
"Sterling Shepard\n",
3220-
"Rob Gronkowski\n",
3221-
"James White\n",
3222-
"David Johnson\n",
3223-
"Marlon Mack\n",
3224-
"Matt Ryan\n",
3225-
"Marquise Goodwin\n",
3226-
"Ravens \n",
3227-
"Brandon Marshall\n",
3228-
"Robby Anderson\n",
3229-
"Rob Gronkowski\n",
3230-
"DeAndre Hopkins\n",
3231-
"David Johnson\n",
3232-
"Dez Bryant\n",
3233-
"Alvin Kamara\n",
3234-
"Matt Ryan\n",
3235-
"Marquise Goodwin\n",
3236-
"Brandon LaFell\n",
3237-
"Ravens \n",
3238-
"Brandon Marshall\n",
3239-
"Rob Gronkowski\n",
3240-
"David Johnson\n",
3241-
"Clive Walford\n",
3242-
"Tarik Cohen\n",
3243-
"Matt Ryan\n",
3244-
"Davante Adams\n",
3245-
"Ravens \n",
3246-
"Rob Gronkowski\n",
3247-
"Donte Moncrief\n",
3248-
"DeAndre Hopkins\n",
3249-
"Larry Fitzgerald\n",
3250-
"David Johnson\n",
3251-
"Clive Walford\n",
3252-
"Julio Jones\n",
3253-
"Tarik Cohen\n",
3254-
"Matt Ryan\n",
3255-
"Ravens \n",
3256-
"Andre Holmes\n",
3257-
"Rob Gronkowski\n",
3258-
"David Johnson\n",
3259-
"Terrelle Pryor\n",
3260-
"Matt Ryan\n",
3261-
"Mike Wallace\n",
3262-
"Ravens \n",
3263-
"Andre Holmes\n",
3264-
"Shane Vereen\n",
3265-
"Rob Gronkowski\n",
3266-
"James White\n",
3267-
"David Johnson\n",
3268-
"Jermaine Gresham\n",
3269-
"Zay Jones\n",
3270-
"Matt Ryan\n",
3271-
"Marquise Goodwin\n",
3272-
"Ravens \n",
3273-
"Chris Thompson\n",
3274-
"Rob Gronkowski\n",
3275-
"Donte Moncrief\n",
3276-
"David Johnson\n",
3277-
"Clive Walford\n",
3278-
"Alvin Kamara\n",
3279-
"Matt Ryan\n",
3280-
"Ravens \n",
3281-
"Keenan Allen\n",
3282-
"Andre Holmes\n",
3283-
"Robby Anderson\n",
3284-
"Rob Gronkowski\n"
3285-
]
3286-
},
32873192
{
32883193
"data": {
32893194
"text/html": [
@@ -3467,7 +3372,7 @@
34673372
"9 9358762 "
34683373
]
34693374
},
3470-
"execution_count": 52,
3375+
"execution_count": 54,
34713376
"metadata": {},
34723377
"output_type": "execute_result"
34733378
}
@@ -3501,7 +3406,7 @@
35013406
},
35023407
{
35033408
"cell_type": "code",
3504-
"execution_count": null,
3409+
"execution_count": 55,
35053410
"metadata": {},
35063411
"outputs": [],
35073412
"source": [

Power Rankings.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@
503503
"source": [
504504
"### We will use 538's Elo Algorithm\n",
505505
"- [538's Elo Introduction](https://fivethirtyeight.com/datalab/introducing-nfl-elo-ratings/)\n",
506-
"- [More Elo Description](https://fivethirtyeight.com/datalab/nfl-elo-ratings-are-back/)\n",
506+
"- [More Elo Description](https://fivethirtyeight.com/datalab/nfl-elo-ratings-are-back/) \n",
507507
"### The features for this model are:\n",
508508
"- game location (home, away, neutral)\n",
509509
"- team score\n",

0 commit comments

Comments
 (0)