Skip to content

Commit

Permalink
Final report
Browse files Browse the repository at this point in the history
  • Loading branch information
DevanshJain07 committed Jun 2, 2020
1 parent 5a04f13 commit aa2e619
Show file tree
Hide file tree
Showing 4 changed files with 429 additions and 14 deletions.
194 changes: 192 additions & 2 deletions .ipynb_checkpoints/Battle Of The Neighbourhood Code-checkpoint.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,175 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Battle Of The Neighborhood Week-4 (Part-2)"
"# Battle Of The Neighborhood"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# INTRODUCTION"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"People across the globe , are unaware of the fact that it is possible to know the best location where they can reside if they wish to shift their home to a particular location. In my Project I have taken an example of a person shifting to Toronto, Canada . Around 187,950 people migrated from across the world to toronto , Canada between the year 2011 to 2016, which makes it 6.1 % of the total population. Different people of varied culture and background have different needs. Some move in with a family, some are students, some of them want to just start a business and are looking for a better place to start their small businesses but are unaware are less educated as to where should they start their base. Right Place to start a family or a business matters. Having a proper and a perfect location will decide whether a family will have all the things they need is present , and whether a businessman will have a successful business or not."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**The target audience are:**"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"1.The family (having a kid) who needs to migrate to Toronto Borough and are in search of a good place having basic ameities and requirements like a school or a university,malls,restaurants,hopitals,gym and a few more."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"2.Small businessman who wants to grow or build their business and wants to know which place has less density or restaurants or gym or malls and also their ratings , likes , etc."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**objective:**"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The objective of my project is to make people aware of the places that are suitable to them by providing them details about the places that they wish they had near them. This project also provides the ratings , number of likes and tips of that particular place of the neighborhood of the respective Borough."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"In my project I have considered three Borough of Toronto - North York, East Toronto and Central Toronto."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# DATA REQUIRED FOR THE PROJECT"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**To solve this problem I needed some data:**"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"1. All the Borough of Toronto so as to take out the considered Borough for the project."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"2. Latitudes and longitude needed of the respective Borough of Toronto (so as to pass the location to the foursquare API)."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"3. Venue details of the places nearby the Borough of toronto."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"4. Ratings , Likes and Tips of the place nearby the Borough of toronto."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**Source for the Data**:"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"1. To get the neighborhoods of toronto, I took help of \"https://en.wikipedia.org/wiki/List_of_postal_codes_of_Canada:_M\" . I wep scrapped this webpage using **beautifulSoup** ."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"2. I got the **Latitude** and the **Longitude** of the respective neighborhoods of Toronto through \"https://cocl.us/Geospatial_data\"."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"3. To get the venue details such as name and category of that place and their ratings I took help of **Foursquare API** via the request library of Python which sent me a json data. **Fourquare API** has a database of 100+ million places ."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# METHODOLOGY"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"First of all we will need the data which we will get from \"https://en.wikipedia.org/wiki/List_of_postal_codes_of_Canada:_M\" by web scraping it with the help of a library called \"BeautifulSoup\" . We will extract all the neighbourhoods of Toronto and clean and process the data."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"We will use the geographical coordinates of longitudes and latitudes which we will will get through geocoder package , so that we can use it in FOURSQUARE API."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"We will use folium package to visualize the neighborhoods of Toronto, Canada."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Then we will get the data required for the project such as venue category and name of venue and also ratings with the help of request library and FOURSQUARE API."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Now, finally we will visualize the data to check the best option with the help of python libraries."
]
},
{
Expand Down Expand Up @@ -4322,7 +4490,7 @@
"source": [
"a=mall_toronto.groupby('Borough').count()\n",
"a['Neighbourhood'].plot(kind='pie')\n",
"plt.title('Restaurants per Borough: Toronto')\n",
"plt.title('Malls per Borough: Toronto')\n",
"plt.show()"
]
},
Expand Down Expand Up @@ -8337,6 +8505,28 @@
"source": [
"gym_toronto_rtl.describe()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# CONCLUSION"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The result we get from the above analysis is that among the three neighborhoods- North York , East Toronto and Central Toronto,\n",
"North York is the best place to live. Comparing the number of neighborhoods - North York has more neighbourhoods than the other three as per the bar graph that we got in the code. North York has 12 restaurants within the radius of 4 km while the other two has only two. North York has more malls and the only borough with a gym in the vicinity of radiys 4km. The only diadvantage of living in this area is that none of the borough has a University or a Hospital within 4km radius."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"For the business people, East and Central Toronto would be a better place tostart their restaurant , gym or Mall beacuse the density of these venues is very less in these places."
]
}
],
"metadata": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"1.The family (having a kid) who needs to migrate to Toronto neighborhoods and are in search of a good place having basic ameities and requirements like a school or a university,malls,restaurants,hopitals,gym and a few more."
"1.The family (having a kid) who needs to migrate to Toronto Borough and are in search of a good place having basic amenities and requirements like a school or a university,malls,restaurants,hopitals,gym and a few more."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"2.Small businessman who wants to grow or build their business and wants to know which place has less density or restaurants or gym or malls and also theur ratings , likes , etc."
"2.Small businessman who wants to grow or build their business and wants to know which place has less density or restaurants or gym or malls and also their ratings , likes , etc."
]
},
{
Expand All @@ -60,14 +60,14 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The objective of my project is to make people aware of the places that are suitable to them by providing them details about the places that they wish they had near them. This project also provides the ratings , number of likes and tips of that particular place of the neighborhood."
"The objective of my project is to make people aware of the places that are suitable to them by providing them details about the places that they wish they had near them. This project also provides the ratings , number of likes and tips of that particular place of the neighborhood of a particular Borough."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"In my project I have considered three neighborhoods of Toronto - North York, East Toronto and Central Toronto."
"In my project I have considered three Borough of Toronto - North York, East Toronto and Central Toronto."
]
},
{
Expand All @@ -88,28 +88,28 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"1. All the neighborhoods of Toronto so as to take out the considered neighborhoods for the project."
"1. Of all the Borough of Toronto so as to take out the considered Borough for the project."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"2. Latitudes and longitude needed of the respective neighborhoods of Toronto (so as to pass the location to the foursquare API)."
"2. Latitudes and longitude needed of the respective Borough of Toronto (so as to pass the location to the foursquare API)."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"3. Venue details of the places nearby the neighborhoods of toronto."
"3. Venue details of the places nearby the Borough of toronto."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"4. Ratings , Likes and Tips of the place nearby the neighborhoods of toronto."
"4. Ratings , Likes and Tips of the place nearby the Borough of toronto."
]
},
{
Expand All @@ -130,7 +130,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"2. I got the **Latitude** and the **Longitude** of the respective neighborhoods of Toronto through \"https://cocl.us/Geospatial_data\"."
"2. I got the **Latitude** and the **Longitude** of the respective Borough of Toronto through \"https://cocl.us/Geospatial_data\"."
]
},
{
Expand All @@ -153,6 +153,18 @@
"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.7.3"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit aa2e619

Please sign in to comment.