updated row-wise ops

This commit is contained in:
rasbt 2015-01-24 20:21:07 -05:00
parent 598bde5c8a
commit 1e6c7444ef

View File

@ -1,7 +1,7 @@
{
"metadata": {
"name": "",
"signature": "sha256:3075a6608bb9a788ad29d1daaeb2421c2db561abd63a3ce811c1fe8e6e482d9f"
"signature": "sha256:ae8818183bc1fe6a58845005b18b12c4458686fa307a82a46857775364df6506"
},
"nbformat": 3,
"nbformat_minor": 0,
@ -807,12 +807,17 @@
"def process_player_col(text):\n",
" name, rest = text.split('\\n')\n",
" position, team = rest.split(' \u2014 ')\n",
" return name, position, team\n",
" return pd.Series([name, position, team])\n",
"\n",
"for idx,row in df.iterrows():\n",
" name, position, team = process_player_col(row['player'])\n",
"df[['player', 'team', 'position']] = df.player.apply(process_player_col)\n",
"\n",
" df.ix[idx, 'player'], df.ix[idx, 'position'], df.ix[idx, 'team'] = name, position, team\n",
"# modified after tip from reddit.com/user/hharison\n",
"#\n",
"# Alternative (inferior) approach:\n",
"#\n",
"#for idx,row in df.iterrows():\n",
"# name, position, team = process_player_col(row['player'])\n",
"# df.ix[idx, 'player'], df.ix[idx, 'position'], df.ix[idx, 'team'] = name, position, team\n",
" \n",
"df.tail(3)"
],
@ -849,8 +854,8 @@
" <td> 10</td>\n",
" <td> 10.47</td>\n",
" <td> 209.49</td>\n",
" <td> Midfield</td>\n",
" <td> Chelsea</td>\n",
" <td> Midfield</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
@ -862,8 +867,8 @@
" <td> 20</td>\n",
" <td> 7.02</td>\n",
" <td> 147.43</td>\n",
" <td> Forward</td>\n",
" <td> West Brom</td>\n",
" <td> Forward</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9</th>\n",
@ -875,8 +880,8 @@
" <td> 11</td>\n",
" <td> 7.50</td>\n",
" <td> 150.01</td>\n",
" <td> Midfield</td>\n",
" <td> Liverpool</td>\n",
" <td> Midfield</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
@ -892,9 +897,9 @@
"9 Steven Gerrard 13.8 20 5 1 11 \n",
"\n",
" points_per_game points position team \n",
"7 10.47 209.49 Midfield Chelsea \n",
"8 7.02 147.43 Forward West Brom \n",
"9 7.50 150.01 Midfield Liverpool "
"7 10.47 209.49 Chelsea Midfield \n",
"8 7.02 147.43 West Brom Forward \n",
"9 7.50 150.01 Liverpool Midfield "
]
}
],
@ -980,8 +985,8 @@
" <td> 13</td>\n",
" <td> 10.17</td>\n",
" <td> 132.23</td>\n",
" <td> Midfield</td>\n",
" <td> Manchester United</td>\n",
" <td> Midfield</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5</th>\n",
@ -993,8 +998,8 @@
" <td> 20</td>\n",
" <td> 9.97</td>\n",
" <td> NaN</td>\n",
" <td> Midfield</td>\n",
" <td> Arsenal</td>\n",
" <td> Midfield</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
@ -1008,9 +1013,9 @@
"4 \u00c1ngel Di Mar\u00eda 15.0 13 3 NaN 13 \n",
"5 Santiago Cazorla 14.8 20 4 NaN 20 \n",
"\n",
" points_per_game points position team \n",
"4 10.17 132.23 Midfield Manchester United \n",
"5 9.97 NaN Midfield Arsenal "
" points_per_game points position team \n",
"4 10.17 132.23 Manchester United Midfield \n",
"5 9.97 NaN Arsenal Midfield "
]
}
],
@ -1071,8 +1076,8 @@
" <td> 34</td>\n",
" <td> 13.12</td>\n",
" <td> 209.98</td>\n",
" <td> Forward</td>\n",
" <td> Manchester City</td>\n",
" <td> Forward</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
@ -1084,8 +1089,8 @@
" <td> 17</td>\n",
" <td> 13.05</td>\n",
" <td> 274.04</td>\n",
" <td> Midfield</td>\n",
" <td> Chelsea</td>\n",
" <td> Midfield</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
@ -1097,8 +1102,8 @@
" <td> 29</td>\n",
" <td> 11.19</td>\n",
" <td> 223.86</td>\n",
" <td> Forward</td>\n",
" <td> Arsenal</td>\n",
" <td> Forward</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
@ -1110,8 +1115,8 @@
" <td> 19</td>\n",
" <td> 10.99</td>\n",
" <td> 197.91</td>\n",
" <td> Midfield</td>\n",
" <td> Manchester City</td>\n",
" <td> Midfield</td>\n",
" </tr>\n",
" <tr>\n",
" <th>6</th>\n",
@ -1123,8 +1128,8 @@
" <td> 11</td>\n",
" <td> 10.35</td>\n",
" <td> 155.26</td>\n",
" <td> Midfield</td>\n",
" <td> Manchester City</td>\n",
" <td> Midfield</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7</th>\n",
@ -1136,8 +1141,8 @@
" <td> 10</td>\n",
" <td> 10.47</td>\n",
" <td> 209.49</td>\n",
" <td> Midfield</td>\n",
" <td> Chelsea</td>\n",
" <td> Midfield</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
@ -1149,8 +1154,8 @@
" <td> 20</td>\n",
" <td> 7.02</td>\n",
" <td> 147.43</td>\n",
" <td> Forward</td>\n",
" <td> West Brom</td>\n",
" <td> Forward</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9</th>\n",
@ -1162,8 +1167,8 @@
" <td> 11</td>\n",
" <td> 7.50</td>\n",
" <td> 150.01</td>\n",
" <td> Midfield</td>\n",
" <td> Liverpool</td>\n",
" <td> Midfield</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
@ -1183,15 +1188,15 @@
"8 Saido Berahino 13.8 21 9 0 20 \n",
"9 Steven Gerrard 13.8 20 5 1 11 \n",
"\n",
" points_per_game points position team \n",
"0 13.12 209.98 Forward Manchester City \n",
"1 13.05 274.04 Midfield Chelsea \n",
"2 11.19 223.86 Forward Arsenal \n",
"3 10.99 197.91 Midfield Manchester City \n",
"6 10.35 155.26 Midfield Manchester City \n",
"7 10.47 209.49 Midfield Chelsea \n",
"8 7.02 147.43 Forward West Brom \n",
"9 7.50 150.01 Midfield Liverpool "
" points_per_game points position team \n",
"0 13.12 209.98 Manchester City Forward \n",
"1 13.05 274.04 Chelsea Midfield \n",
"2 11.19 223.86 Arsenal Forward \n",
"3 10.99 197.91 Manchester City Midfield \n",
"6 10.35 155.26 Manchester City Midfield \n",
"7 10.47 209.49 Chelsea Midfield \n",
"8 7.02 147.43 West Brom Forward \n",
"9 7.50 150.01 Liverpool Midfield "
]
}
],
@ -1255,8 +1260,8 @@
" <td> 34</td>\n",
" <td> 13.12</td>\n",
" <td> 209.98</td>\n",
" <td> Forward</td>\n",
" <td> Manchester City</td>\n",
" <td> Forward</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
@ -1268,8 +1273,8 @@
" <td> 17</td>\n",
" <td> 13.05</td>\n",
" <td> 274.04</td>\n",
" <td> Midfield</td>\n",
" <td> Chelsea</td>\n",
" <td> Midfield</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
@ -1281,8 +1286,8 @@
" <td> 29</td>\n",
" <td> 11.19</td>\n",
" <td> 223.86</td>\n",
" <td> Forward</td>\n",
" <td> Arsenal</td>\n",
" <td> Forward</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
@ -1294,8 +1299,8 @@
" <td> 19</td>\n",
" <td> 10.99</td>\n",
" <td> 197.91</td>\n",
" <td> Midfield</td>\n",
" <td> Manchester City</td>\n",
" <td> Midfield</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
@ -1307,8 +1312,8 @@
" <td> 13</td>\n",
" <td> 10.17</td>\n",
" <td> 132.23</td>\n",
" <td> Midfield</td>\n",
" <td> Manchester United</td>\n",
" <td> Midfield</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5</th>\n",
@ -1320,8 +1325,8 @@
" <td> 20</td>\n",
" <td> 9.97</td>\n",
" <td> 0.00</td>\n",
" <td> Midfield</td>\n",
" <td> Arsenal</td>\n",
" <td> Midfield</td>\n",
" </tr>\n",
" <tr>\n",
" <th>6</th>\n",
@ -1333,8 +1338,8 @@
" <td> 11</td>\n",
" <td> 10.35</td>\n",
" <td> 155.26</td>\n",
" <td> Midfield</td>\n",
" <td> Manchester City</td>\n",
" <td> Midfield</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7</th>\n",
@ -1346,8 +1351,8 @@
" <td> 10</td>\n",
" <td> 10.47</td>\n",
" <td> 209.49</td>\n",
" <td> Midfield</td>\n",
" <td> Chelsea</td>\n",
" <td> Midfield</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
@ -1359,8 +1364,8 @@
" <td> 20</td>\n",
" <td> 7.02</td>\n",
" <td> 147.43</td>\n",
" <td> Forward</td>\n",
" <td> West Brom</td>\n",
" <td> Forward</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9</th>\n",
@ -1372,8 +1377,8 @@
" <td> 11</td>\n",
" <td> 7.50</td>\n",
" <td> 150.01</td>\n",
" <td> Midfield</td>\n",
" <td> Liverpool</td>\n",
" <td> Midfield</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
@ -1395,17 +1400,17 @@
"8 Saido Berahino 13.8 21 9 0 20 \n",
"9 Steven Gerrard 13.8 20 5 1 11 \n",
"\n",
" points_per_game points position team \n",
"0 13.12 209.98 Forward Manchester City \n",
"1 13.05 274.04 Midfield Chelsea \n",
"2 11.19 223.86 Forward Arsenal \n",
"3 10.99 197.91 Midfield Manchester City \n",
"4 10.17 132.23 Midfield Manchester United \n",
"5 9.97 0.00 Midfield Arsenal \n",
"6 10.35 155.26 Midfield Manchester City \n",
"7 10.47 209.49 Midfield Chelsea \n",
"8 7.02 147.43 Forward West Brom \n",
"9 7.50 150.01 Midfield Liverpool "
" points_per_game points position team \n",
"0 13.12 209.98 Manchester City Forward \n",
"1 13.05 274.04 Chelsea Midfield \n",
"2 11.19 223.86 Arsenal Forward \n",
"3 10.99 197.91 Manchester City Midfield \n",
"4 10.17 132.23 Manchester United Midfield \n",
"5 9.97 0.00 Arsenal Midfield \n",
"6 10.35 155.26 Manchester City Midfield \n",
"7 10.47 209.49 Chelsea Midfield \n",
"8 7.02 147.43 West Brom Forward \n",
"9 7.50 150.01 Liverpool Midfield "
]
}
],
@ -1482,8 +1487,8 @@
" <td> 20</td>\n",
" <td> 7.02</td>\n",
" <td> 147.43</td>\n",
" <td> Forward</td>\n",
" <td> West Brom</td>\n",
" <td> Forward</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9 </th>\n",
@ -1495,8 +1500,8 @@
" <td> 11</td>\n",
" <td> 7.50</td>\n",
" <td> 150.01</td>\n",
" <td> Midfield</td>\n",
" <td> Liverpool</td>\n",
" <td> Midfield</td>\n",
" </tr>\n",
" <tr>\n",
" <th>10</th>\n",
@ -1525,8 +1530,8 @@
"10 NaN NaN NaN NaN NaN NaN \n",
"\n",
" points_per_game points position team \n",
"8 7.02 147.43 Forward West Brom \n",
"9 7.50 150.01 Midfield Liverpool \n",
"8 7.02 147.43 West Brom Forward \n",
"9 7.50 150.01 Liverpool Midfield \n",
"10 NaN NaN NaN NaN "
]
}
@ -1576,8 +1581,8 @@
" <td> 20</td>\n",
" <td> 7.02</td>\n",
" <td> 147.43</td>\n",
" <td> Forward</td>\n",
" <td> West Brom</td>\n",
" <td> Forward</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9 </th>\n",
@ -1589,8 +1594,8 @@
" <td> 11</td>\n",
" <td> 7.50</td>\n",
" <td> 150.01</td>\n",
" <td> Midfield</td>\n",
" <td> Liverpool</td>\n",
" <td> Midfield</td>\n",
" </tr>\n",
" <tr>\n",
" <th>10</th>\n",
@ -1619,8 +1624,8 @@
"10 New Player 12.3 NaN NaN NaN NaN \n",
"\n",
" points_per_game points position team \n",
"8 7.02 147.43 Forward West Brom \n",
"9 7.50 150.01 Midfield Liverpool \n",
"8 7.02 147.43 West Brom Forward \n",
"9 7.50 150.01 Liverpool Midfield \n",
"10 NaN NaN NaN NaN "
]
}
@ -1692,8 +1697,8 @@
" <td> 34</td>\n",
" <td> 13.12</td>\n",
" <td> 209.98</td>\n",
" <td> Forward</td>\n",
" <td> Manchester City</td>\n",
" <td> Forward</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
@ -1705,8 +1710,8 @@
" <td> 29</td>\n",
" <td> 11.19</td>\n",
" <td> 223.86</td>\n",
" <td> Forward</td>\n",
" <td> Arsenal</td>\n",
" <td> Forward</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
@ -1718,8 +1723,8 @@
" <td> 20</td>\n",
" <td> 7.02</td>\n",
" <td> 147.43</td>\n",
" <td> Forward</td>\n",
" <td> West Brom</td>\n",
" <td> Forward</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
@ -1731,8 +1736,8 @@
" <td> 17</td>\n",
" <td> 13.05</td>\n",
" <td> 274.04</td>\n",
" <td> Midfield</td>\n",
" <td> Chelsea</td>\n",
" <td> Midfield</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
@ -1744,8 +1749,8 @@
" <td> 19</td>\n",
" <td> 10.99</td>\n",
" <td> 197.91</td>\n",
" <td> Midfield</td>\n",
" <td> Manchester City</td>\n",
" <td> Midfield</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
@ -1762,12 +1767,12 @@
"1 Eden Hazard 18.9 21 8 4 17 \n",
"3 Yaya Tour\u00e9 16.6 18 7 1 19 \n",
"\n",
" points_per_game points position team \n",
"0 13.12 209.98 Forward Manchester City \n",
"2 11.19 223.86 Forward Arsenal \n",
"8 7.02 147.43 Forward West Brom \n",
"1 13.05 274.04 Midfield Chelsea \n",
"3 10.99 197.91 Midfield Manchester City "
" points_per_game points position team \n",
"0 13.12 209.98 Manchester City Forward \n",
"2 11.19 223.86 Arsenal Forward \n",
"8 7.02 147.43 West Brom Forward \n",
"1 13.05 274.04 Chelsea Midfield \n",
"3 10.99 197.91 Manchester City Midfield "
]
}
],
@ -1815,8 +1820,8 @@
" <td> 34</td>\n",
" <td> 13.12</td>\n",
" <td> 209.98</td>\n",
" <td> Forward</td>\n",
" <td> Manchester City</td>\n",
" <td> Forward</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
@ -1828,8 +1833,8 @@
" <td> 29</td>\n",
" <td> 11.19</td>\n",
" <td> 223.86</td>\n",
" <td> Forward</td>\n",
" <td> Arsenal</td>\n",
" <td> Forward</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
@ -1841,8 +1846,8 @@
" <td> 20</td>\n",
" <td> 7.02</td>\n",
" <td> 147.43</td>\n",
" <td> Forward</td>\n",
" <td> West Brom</td>\n",
" <td> Forward</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
@ -1854,8 +1859,8 @@
" <td> 17</td>\n",
" <td> 13.05</td>\n",
" <td> 274.04</td>\n",
" <td> Midfield</td>\n",
" <td> Chelsea</td>\n",
" <td> Midfield</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5</th>\n",
@ -1867,8 +1872,8 @@
" <td> 19</td>\n",
" <td> 10.99</td>\n",
" <td> 197.91</td>\n",
" <td> Midfield</td>\n",
" <td> Manchester City</td>\n",
" <td> Midfield</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
@ -1885,12 +1890,12 @@
"4 Eden Hazard 18.9 21 8 4 17 \n",
"5 Yaya Tour\u00e9 16.6 18 7 1 19 \n",
"\n",
" points_per_game points position team \n",
"1 13.12 209.98 Forward Manchester City \n",
"2 11.19 223.86 Forward Arsenal \n",
"3 7.02 147.43 Forward West Brom \n",
"4 13.05 274.04 Midfield Chelsea \n",
"5 10.99 197.91 Midfield Manchester City "
" points_per_game points position team \n",
"1 13.12 209.98 Manchester City Forward \n",
"2 11.19 223.86 Arsenal Forward \n",
"3 7.02 147.43 West Brom Forward \n",
"4 13.05 274.04 Chelsea Midfield \n",
"5 10.99 197.91 Manchester City Midfield "
]
}
],
@ -1962,8 +1967,8 @@
" <td> 34</td>\n",
" <td> 13.12</td>\n",
" <td> 209.98</td>\n",
" <td> Forward</td>\n",
" <td> Manchester City</td>\n",
" <td> Forward</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
@ -1975,8 +1980,8 @@
" <td> 29</td>\n",
" <td> 11.19</td>\n",
" <td> 223.86</td>\n",
" <td> Forward</td>\n",
" <td> Arsenal</td>\n",
" <td> Forward</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
@ -1988,8 +1993,8 @@
" <td> 20</td>\n",
" <td> 7.02</td>\n",
" <td> 147.43</td>\n",
" <td> Forward</td>\n",
" <td> West Brom</td>\n",
" <td> Forward</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
@ -2004,10 +2009,10 @@
"2 Alexis S\u00e1nchez 15 0 12 7 29 \n",
"3 Saido Berahino 13.8 21 9 0 20 \n",
"\n",
" points_per_game points position team \n",
"1 13.12 209.98 Forward Manchester City \n",
"2 11.19 223.86 Forward Arsenal \n",
"3 7.02 147.43 Forward West Brom "
" points_per_game points position team \n",
"1 13.12 209.98 Manchester City Forward \n",
"2 11.19 223.86 Arsenal Forward \n",
"3 7.02 147.43 West Brom Forward "
]
}
],
@ -2075,8 +2080,8 @@
" <td> 34</td>\n",
" <td> 13.12</td>\n",
" <td> 209.98</td>\n",
" <td> Forward</td>\n",
" <td> Manchester City</td>\n",
" <td> Forward</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Alexis S\u00e1nchez</th>\n",
@ -2087,8 +2092,8 @@
" <td> 29</td>\n",
" <td> 11.19</td>\n",
" <td> 223.86</td>\n",
" <td> Forward</td>\n",
" <td> Arsenal</td>\n",
" <td> Forward</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Saido Berahino</th>\n",
@ -2099,8 +2104,8 @@
" <td> 20</td>\n",
" <td> 7.02</td>\n",
" <td> 147.43</td>\n",
" <td> Forward</td>\n",
" <td> West Brom</td>\n",
" <td> Forward</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
@ -2116,11 +2121,11 @@
"Alexis S\u00e1nchez 17.6 0 12 7 29 \n",
"Saido Berahino 13.8 21 9 0 20 \n",
"\n",
" points_per_game points position team \n",
" points_per_game points position team \n",
"player \n",
"Sergio Ag\u00fcero 13.12 209.98 Forward Manchester City \n",
"Alexis S\u00e1nchez 11.19 223.86 Forward Arsenal \n",
"Saido Berahino 7.02 147.43 Forward West Brom "
"Sergio Ag\u00fcero 13.12 209.98 Manchester City Forward \n",
"Alexis S\u00e1nchez 11.19 223.86 Arsenal Forward \n",
"Saido Berahino 7.02 147.43 West Brom Forward "
]
}
],
@ -2185,8 +2190,8 @@
" <td> 34</td>\n",
" <td> 13.12</td>\n",
" <td> 209.98</td>\n",
" <td> Forward</td>\n",
" <td> Manchester City</td>\n",
" <td> Forward</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Alexis S\u00e1nchez</th>\n",
@ -2197,8 +2202,8 @@
" <td> 29</td>\n",
" <td> 11.19</td>\n",
" <td> 223.86</td>\n",
" <td> Forward</td>\n",
" <td> Arsenal</td>\n",
" <td> Forward</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Saido Berahino</th>\n",
@ -2209,8 +2214,8 @@
" <td> 20</td>\n",
" <td> 7.02</td>\n",
" <td> 147.43</td>\n",
" <td> Forward</td>\n",
" <td> West Brom</td>\n",
" <td> Forward</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
@ -2226,11 +2231,11 @@
"Alexis S\u00e1nchez 15 0 12 7 29 \n",
"Saido Berahino 13.8 21 9 0 20 \n",
"\n",
" points_per_game points position team \n",
" points_per_game points position team \n",
"player \n",
"Sergio Ag\u00fcero 13.12 209.98 Forward Manchester City \n",
"Alexis S\u00e1nchez 11.19 223.86 Forward Arsenal \n",
"Saido Berahino 7.02 147.43 Forward West Brom "
"Sergio Ag\u00fcero 13.12 209.98 Manchester City Forward \n",
"Alexis S\u00e1nchez 11.19 223.86 Arsenal Forward \n",
"Saido Berahino 7.02 147.43 West Brom Forward "
]
}
],
@ -2285,8 +2290,8 @@
" <td> 34</td>\n",
" <td> 13.12</td>\n",
" <td> 209.98</td>\n",
" <td> Forward</td>\n",
" <td> Manchester City</td>\n",
" <td> Forward</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
@ -2298,8 +2303,8 @@
" <td> 29</td>\n",
" <td> 11.19</td>\n",
" <td> 223.86</td>\n",
" <td> Forward</td>\n",
" <td> Arsenal</td>\n",
" <td> Forward</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
@ -2311,8 +2316,8 @@
" <td> 20</td>\n",
" <td> 7.02</td>\n",
" <td> 147.43</td>\n",
" <td> Forward</td>\n",
" <td> West Brom</td>\n",
" <td> Forward</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
@ -2327,23 +2332,14 @@
"1 Alexis S\u00e1nchez 15 0 12 7 29 \n",
"2 Saido Berahino 13.8 21 9 0 20 \n",
"\n",
" points_per_game points position team \n",
"0 13.12 209.98 Forward Manchester City \n",
"1 11.19 223.86 Forward Arsenal \n",
"2 7.02 147.43 Forward West Brom "
" points_per_game points position team \n",
"0 13.12 209.98 Manchester City Forward \n",
"1 11.19 223.86 Arsenal Forward \n",
"2 7.02 147.43 West Brom Forward "
]
}
],
"prompt_number": 18
},
{
"cell_type": "code",
"collapsed": false,
"input": [],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 18
}
],
"metadata": {}