My First Data Science Project, Which City Do You Choose, Seoul or Tokyo?

Code to Add to Table
The Result

Plot It To Map

I will use folium to plot it to map and we can label each district from the coordinate we got before. This is the code to plot it to Map.

Code For Plot in Folium Map
Map With District Position in Seoul
Map With District Position in Tokyo
Foursquare
Code for Request Nearby Venue in Each District
Result of Nearby Venue in Each District of Seoul
Result of Nearby Venue in Each District of Tokyo
Get Dummies Code
Result of Dummies
The Code
Some of the result
Code To Find Top 10 Venue
Some Result of Top 10 In Each District of Seoul
Some Result of Top 10 in Each District of Tokyo
K-Means Code
Code for Megre
Tokyo Table
Seoul Table
Code to Map The Result
Map of Seoul
Map of Tokyo

The cluster of Each City

After using K-Means, the computer will try to cluster each district and give us some results. K-Means is an unsupervised method of machine learning. I will try to improve the method and the data so it can give more accurate results.

Tokto Cluster

Seoul Cluster

Result

Now you find some characteristics of each district, you can choose the district you prefer to live in. They all have their own unique characteristics. And I find something else without the cluster.

Result of Tokyo
Result of Seoul

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store