Skip to content

Team challenge, the purpose is to cluster some chipotles restaurant to help someone find the best place to live and eat lot of chipotles.

Notifications You must be signed in to change notification settings

Demesmaeker/chipotle-clustering-challenge

 
 

Repository files navigation

chipotle-clustering-challenge

becode, team challenge

Must-have features

  • A visualisation of the USA with chipotle locations
  • Visualization of the different clusters
  • Intrinsic analysis comparison of the clusters of at least 2 methods with varying arguments (using euclidian distance as criteria)
  • A chosen centroid to live. Make your argument of why the chosen centroid is superior to others. Examples of arguments are:
    • highest density
    • greatest uninterrupted link of chipotle locations with smallest link-to-link distance
    • ...
  • a Github page where results are visualized

Steps

  • Create the repository
  • Install geopandas
  • Plot the US map
  • Visualize your data on this map
  • Plot a dendogram of your data to help you decide the appropropriate clustering resolution
  • Compare and analyse different clustering methods using intrinsic analysis to decide on a chosen method.
  • Choose a centroid/adress to live
  • Publish your results to a Github page with an explanation of your method.

Vizualisation

Dataset "chipotle_stores" as "df"

chipotle_stores

Dataset "states" using geopandas

states

At first we tried to draw the map of the states using geopandas...

states_map

...in order to be able to plot our points directly on the map.

chipotle_map

Data analysis

Now we have to choosing only relevant states

value_counts

Easy using this code

df = df.groupby('state').filter(lambda x : len(x)>20)

And next ...

  • Check number of invalid metric entries.
  • Adjusting index

Our map looks much clearer like this

chipotle_map

Dendogram

chipotle_map

Let's cluster all of that

Clusters

cluster

Center of Clusters

Snip20201215_8

Clusters @ Califonia

ca

Center of Clusters @ Califonia

Snip20201215_7

About

Team challenge, the purpose is to cluster some chipotles restaurant to help someone find the best place to live and eat lot of chipotles.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 76.2%
  • HTML 23.8%