|
10 | 10 | "\n",
|
11 | 11 | "Currently, anyone with **5 or more** referrals is considered a top referrer.\n",
|
12 | 12 | "\n",
|
13 |
| - "In the cell labelled CHALLENGE, follow the instructions to return what is required. Use `Kernel > Restart and run all cells` to check your work. If all the tests pass, you got it!" |
| 13 | + "When you have completed the challenge, press the `Run Tests` button" |
14 | 14 | ]
|
15 | 15 | },
|
16 | 16 | {
|
17 | 17 | "cell_type": "code",
|
18 |
| - "execution_count": 1, |
| 18 | + "execution_count": 37, |
19 | 19 | "metadata": {},
|
20 | 20 | "outputs": [
|
21 | 21 | {
|
|
24 | 24 | "475"
|
25 | 25 | ]
|
26 | 26 | },
|
27 |
| - "execution_count": 1, |
| 27 | + "execution_count": 37, |
28 | 28 | "metadata": {},
|
29 | 29 | "output_type": "execute_result"
|
30 | 30 | }
|
|
44 | 44 | },
|
45 | 45 | {
|
46 | 46 | "cell_type": "code",
|
47 |
| - "execution_count": 2, |
| 47 | + "execution_count": 38, |
48 | 48 | "metadata": {},
|
49 | 49 | "outputs": [
|
50 | 50 | {
|
|
223 | 223 | "[475 rows x 7 columns]"
|
224 | 224 | ]
|
225 | 225 | },
|
226 |
| - "execution_count": 2, |
| 226 | + "execution_count": 38, |
227 | 227 | "metadata": {},
|
228 | 228 | "output_type": "execute_result"
|
229 | 229 | }
|
|
238 | 238 | },
|
239 | 239 | {
|
240 | 240 | "cell_type": "code",
|
241 |
| - "execution_count": 3, |
| 241 | + "execution_count": 39, |
242 | 242 | "metadata": {},
|
243 | 243 | "outputs": [
|
| 244 | + { |
| 245 | + "data": { |
| 246 | + "application/javascript": [ |
| 247 | + "IPython.notebook.execute_all_cells();" |
| 248 | + ], |
| 249 | + "text/plain": [ |
| 250 | + "<IPython.core.display.Javascript object>" |
| 251 | + ] |
| 252 | + }, |
| 253 | + "metadata": {}, |
| 254 | + "output_type": "display_data" |
| 255 | + }, |
| 256 | + { |
| 257 | + "data": { |
| 258 | + "application/vnd.jupyter.widget-view+json": { |
| 259 | + "model_id": "6dda60d04f0040859bd5f5db7db3eeea", |
| 260 | + "version_major": 2, |
| 261 | + "version_minor": 0 |
| 262 | + }, |
| 263 | + "text/plain": [ |
| 264 | + "Button(description='Run Tests', style=ButtonStyle())" |
| 265 | + ] |
| 266 | + }, |
| 267 | + "metadata": {}, |
| 268 | + "output_type": "display_data" |
| 269 | + }, |
| 270 | + { |
| 271 | + "data": { |
| 272 | + "text/markdown": [ |
| 273 | + "```\n", |
| 274 | + "...\n", |
| 275 | + "----------------------------------------------------------------------\n", |
| 276 | + "Ran 3 tests in 0.004s\n", |
| 277 | + "\n", |
| 278 | + "OK\n", |
| 279 | + "\n", |
| 280 | + "```" |
| 281 | + ], |
| 282 | + "text/plain": [ |
| 283 | + "<IPython.core.display.Markdown object>" |
| 284 | + ] |
| 285 | + }, |
| 286 | + "metadata": {}, |
| 287 | + "output_type": "display_data" |
| 288 | + }, |
| 289 | + { |
| 290 | + "data": { |
| 291 | + "application/vnd.jupyter.widget-view+json": { |
| 292 | + "model_id": "5fdab85d808240b5ba79999461a20256", |
| 293 | + "version_major": 2, |
| 294 | + "version_minor": 0 |
| 295 | + }, |
| 296 | + "text/plain": [ |
| 297 | + "Button(description='Run Tests', style=ButtonStyle())" |
| 298 | + ] |
| 299 | + }, |
| 300 | + "metadata": {}, |
| 301 | + "output_type": "display_data" |
| 302 | + }, |
244 | 303 | {
|
245 | 304 | "data": {
|
246 | 305 | "text/markdown": [
|
|
271 | 330 | "AssertionError: 475 != 142 : Whoops I received a different count than I expected, make sure the last line is the entire resulting DataFrame (not just the head)\n",
|
272 | 331 | "\n",
|
273 | 332 | "----------------------------------------------------------------------\n",
|
274 |
| - "Ran 3 tests in 0.005s\n", |
| 333 | + "Ran 3 tests in 0.004s\n", |
275 | 334 | "\n",
|
276 | 335 | "FAILED (failures=3)\n",
|
277 | 336 | "\n",
|
|
288 | 347 | "source": [
|
289 | 348 | "check(__name__, 'Find the top referrers')"
|
290 | 349 | ]
|
| 350 | + }, |
| 351 | + { |
| 352 | + "cell_type": "code", |
| 353 | + "execution_count": null, |
| 354 | + "metadata": {}, |
| 355 | + "outputs": [], |
| 356 | + "source": [] |
291 | 357 | }
|
292 | 358 | ],
|
293 | 359 | "metadata": {
|
|
306 | 372 | "name": "python",
|
307 | 373 | "nbconvert_exporter": "python",
|
308 | 374 | "pygments_lexer": "ipython3",
|
309 |
| - "version": "3.7.0" |
| 375 | + "version": "3.7.1" |
310 | 376 | }
|
311 | 377 | },
|
312 | 378 | "nbformat": 4,
|
|
0 commit comments