Skip to main content


Applied Data Science Capstone by IBM/Coursera

Table of contents

Introduction: Business Problem 

In this project we will try to find an optimal location for a restaurant. Specifically, this report will be targeted for people that are new to Hyderabad, it can be daunting to figure out what restaurants are worth going to and where they are and for the stakeholders interested in opening a restaurant in Hyderabad, India.
Since there are lots of restaurants in Hyderabad we will try to detect locations that are that are with good likes. We would also prefer locations as close to city center as possible.
We will use our data science powers to generate a few most promissing neighborhoods based on this criteria.

Data 

For this assignment, I will be utilizing the Foursquare API to pull the following location data on restaurants in Hyderabad, IND.
  1. Venue Name
  2. Venue ID
  3. Venue Location
  4. Venue Category
  5. Count of Likes
To acquire the data mentioned above, I will need to do the following:
Get geolocator lat and long coordinates for Hyderabad,IND. Use Foursquare API to get a list of all venues in Hyderabad

·         Get venue name,
·         venue ID
·         location
·         category
·         likes

Methodology

Get the location coordinates using geocoder

from geopy.geocoders import Nominatim
# Get latitude and longitude
address = 'Hyderabad'
geolocator = Nominatim(user_agent="foursquare_agent")
location = geolocator.geocode(address)
latitude = location.latitude
longitude = location.longitude
print("Latitude is {} and Longitude is {}".format(latitude,longitude))

Use Foursquare API to fetch location data

search_query = 'restaurant'
radius = 10000
url = 'https://api.foursquare.com/v2/venues/search?client_id={}&client_secret={}&ll={},{}&v={}&query={}&radius={}&limit={}'.format(CLIENT_ID, CLIENT_SECRET, latitude, longitude, VERSION, search_query, radius, LIMIT)
results = requests.get(url).json()
#print(results)
venues=results['response']['venues']
df = json_normalize(venues)
df.head()

Perform Data wrangling and make it to required format



Fetch likes for each restaurant using foursquare API


Analysis

Group the restaurants depending on type






Rate the restaurant food quality as poor, average and good depending on total number of likes


Results and Discussion

Cluster the restaurants using k-means and visualize the results on a map using folium.











Conclusion

The venues have been identified using Foursquare API, categorized, clustered and have been plotted on the map. The map reveals restaurants which are exceptionally good in Hyderabad Based on the visitor’s venue rating and price preferences, he/she can choose amongst the places.

Comments

Popular posts from this blog

inductor

An inductor is a passive electronic component that stores energy in the form of a magnetic field. In its simplest form, an inductor consists of a wire loop or coil. The inductance is directly proportional to the number of turns in the coil. Inductance also depends on the radius of the coil and on the type of material around which the coil is wound.   The standard unit of inductance is the Henry abbreviated H. This is a large unit. More common units are the micro Henry, abbreviated µH (1 µH =10 -6 H) and the milli Henry, abbreviated mH (1 mH =10 -3 H). Occasionally, the nano Henry (nH) is used (1 nH = 10 -9 H).             inductors in series & parallel : applications : Inductors are used extensively in analog circuits and signal processing. Applications range from the use of large inductors in power supplies, which in conjunction with filter capacitors remove  fluctuations from the direct current output.          

Transistor

Introduction: A transistor is a semiconductor device which is used to amplify the signals as well as in switching circuits. Generally, it consists of three terminals emitter(E), base(B) and collector(C) and two P-N junctions. It is one of the active components. It was invented by John Bardeen, William Shockley and Walter Brattain in 1948, in Bell Telephone Laboratories. Transistors are divided into different types depending on their construction and operation. Transistors are basically classified into two types; they are Bipolar Junction Transistors (BJT) and Field Effect Transistors (FET). The BJTs are again classified into NPN and PNP transistors. The FET transistors are classified into JFET and MOSFET. Junction FET transistors are classified into N-channel JFET and P-channel JFET depending on their function. MOSFET transistors are classified into Depletion mode and Enhancement mode. Again depletion and enhancement mode transistors are classified into N-channel JFET and P-channel. d...

schottky diode

introduction: schottky diode is named after named after German physicist Walter H. Schottky.  it is also called as hot carrier diode or surface barrier diode. [caption id="attachment_729" align="aligncenter" width="289"] symbol of schottky diode[/caption] construction : In P-N junction diode semiconductor(P-type)-semiconductor(N-type) junction is formed but, in the case of schottky diode metal-semiconductor junction is formed. basically metals used are molybdenum, platinum, chromium, tungsten Aluminium, gold e.t.c and the semiconductor used is N type silico n is used. working : Schottky diode is often referred as “majority carrier diode”.. When materials are joined, electrons in n-type silicon immediately flow into metal because the electrons in semi conductor are at higher energy level than metal and hence electron flow is established. The flow of electrons stops when Fermi level of two materials are at same level. Due to flow of electrons into m...