You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hw_2.ipynb
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@
21
21
"source": [
22
22
"## Coding\n",
23
23
"\n",
24
-
"The goal here is to practice [joining datasets through pandas](https://pandas.pydata.org/docs/user_guide/merging.html#database-style-dataframe-or-named-series-joining-merging). Hint: The instructions here are intentionally incomplete."
24
+
"The goal here is to practice [joining datasets through pandas](https://pandas.pydata.org/docs/user_guide/merging.html#merge). Hint: The instructions here are intentionally incomplete."
25
25
]
26
26
},
27
27
{
@@ -139,7 +139,7 @@
139
139
"source": [
140
140
"### Step 3\n",
141
141
"\n",
142
-
"Use [`merge()`](https://pandas.pydata.org/docs/user_guide/merging.html#database-style-dataframe-or-named-series-joining-merging) to combine the two, and output the resulting table."
142
+
"Use [`merge()`](https://pandas.pydata.org/docs/user_guide/merging.html#merge) to combine the two, and output the resulting table."
143
143
]
144
144
},
145
145
{
@@ -173,12 +173,16 @@
173
173
"\n",
174
174
"<details>\n",
175
175
"<summary><strong>Hint</strong></summary>\n",
176
-
"\n",
177
176
"You're creating a \"number of [thing] per capita by borough\" table.\n",
178
177
"\n",
179
178
"1. Do a [`groupby()`](https://pandas.pydata.org/docs/user_guide/groupby.html) on the original dataset.\n",
180
179
"1. Join with the populations by borough.\n",
181
180
"1. Compute the per-capita values as a new column.\n",
181
+
"</details>\n",
182
+
"\n",
183
+
"<details>\n",
184
+
"<summary><strong>Hint 2</strong></summary>\n",
185
+
"Having trouble merging the datasets? Try looking at the unique values in the columns you're trying to merge on.\n",
0 commit comments