Created
March 19, 2019 16:23
-
-
Save alfredo-g-zapiola/ab2635ec3b9ea554e99daa0c233ede3c to your computer and use it in GitHub Desktop.
Created on Cognitive Class Labs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"Neighbourhoods - Toronto\n", | |
"\n" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"1. Scrape https://en.wikipedia.org/wiki/List_of_postal_codes_of_Canada:_M\n", | |
"2. Transform data to dataframe:\n", | |
" i. Columns: PostalCOde, Borough, Neighborhood.\n", | |
" ii. Not assigned buroughs: drop row.\n", | |
" iii. For PostalCode, append all neighbourhoods (like a group concat)\n", | |
" iv. If there is borough but no neighbourhood, neighborhood = borough\n", | |
" v. Explain steps\n", | |
" vi. print df.shape\n", | |
"3. Submit link to Github\n", | |
"4. Links: http://beautiful-soup-4.readthedocs.io/en/latest/\n", | |
" https://www.youtube.com/watch?v=ng2o98k983k" | |
] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "Python 3", | |
"language": "python", | |
"name": "python3" | |
}, | |
"language_info": { | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 3 | |
}, | |
"file_extension": ".py", | |
"mimetype": "text/x-python", | |
"name": "python", | |
"nbconvert_exporter": "python", | |
"pygments_lexer": "ipython3", | |
"version": "3.6.8" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment