Skip to content

Commit 1afa692

Browse files
committed
include tutorials at start of homework 2
1 parent e3ccd04 commit 1afa692

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

hw_2.ipynb

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,24 @@
1515
"_[General assignment information](https://python-public-policy.afeld.me/en/{{school_slug}}/assignments.html)_"
1616
]
1717
},
18+
{
19+
"cell_type": "markdown",
20+
"metadata": {},
21+
"source": [
22+
"## Tutorials\n",
23+
"\n",
24+
"- [`merge()`](https://pandas.pydata.org/docs/user_guide/merging.html#merge)\n",
25+
"- [How to manipulate textual data](https://pandas.pydata.org/docs/getting_started/intro_tutorials/10_text_data.html)\n",
26+
"- [How to create new columns derived from existing columns](https://pandas.pydata.org/docs/getting_started/intro_tutorials/05_add_columns.html)"
27+
]
28+
},
1829
{
1930
"cell_type": "markdown",
2031
"metadata": {},
2132
"source": [
2233
"## Coding\n",
2334
"\n",
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."
35+
"The goal here is to practice joining datasets through pandas. Hint: The instructions here are intentionally incomplete."
2536
]
2637
},
2738
{
@@ -155,6 +166,16 @@
155166
"# your code here"
156167
]
157168
},
169+
{
170+
"cell_type": "markdown",
171+
"metadata": {},
172+
"source": [
173+
"<details>\n",
174+
"<summary><strong>Hint</strong></summary>\n",
175+
"Having trouble merging the datasets? Try looking at the unique values in the columns you're trying to merge on.\n",
176+
"</details>"
177+
]
178+
},
158179
{
159180
"cell_type": "markdown",
160181
"metadata": {
@@ -178,11 +199,6 @@
178199
"1. Do a [`groupby()`](https://pandas.pydata.org/docs/user_guide/groupby.html) on the original dataset.\n",
179200
"1. Join with the populations by borough.\n",
180201
"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",
186202
"</details>"
187203
]
188204
},

0 commit comments

Comments
 (0)