Skip to content

Commit 35f8f33

Browse files
Fix brandon-rhodes#15 by adding suggested (and correct) solution
1 parent df0f008 commit 35f8f33

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Solutions-1.ipynb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,14 @@
12741274
"\n",
12751275
"c = cast\n",
12761276
"c = c[c.character == 'Ophelia']\n",
1277-
"len(c)"
1277+
"len(c)\n",
1278+
"\n",
1279+
"# That was my original answer.\n",
1280+
"# But 9peppe on GitHub points out I am wrong! Instead:\n",
1281+
"\n",
1282+
"len(cast[cast.character == \"Ophelia\"].name.unique())\n",
1283+
"\n",
1284+
"# Can you work out why the two answers are different?"
12781285
]
12791286
},
12801287
{

0 commit comments

Comments
 (0)