Skip to content

Commit 5c928fa

Browse files
committed
include hint around unique values when merging
1 parent b674940 commit 5c928fa

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

hw_2.ipynb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"source": [
2222
"## Coding\n",
2323
"\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."
2525
]
2626
},
2727
{
@@ -139,7 +139,7 @@
139139
"source": [
140140
"### Step 3\n",
141141
"\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."
143143
]
144144
},
145145
{
@@ -173,12 +173,16 @@
173173
"\n",
174174
"<details>\n",
175175
"<summary><strong>Hint</strong></summary>\n",
176-
"\n",
177176
"You're creating a \"number of [thing] per capita by borough\" table.\n",
178177
"\n",
179178
"1. Do a [`groupby()`](https://pandas.pydata.org/docs/user_guide/groupby.html) on the original dataset.\n",
180179
"1. Join with the populations by borough.\n",
181180
"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",
182186
"</details>"
183187
]
184188
},

0 commit comments

Comments
 (0)