{"id":94,"date":"2019-01-27T08:36:54","date_gmt":"2019-01-27T08:36:54","guid":{"rendered":"https:\/\/ryan.hattie.codes\/?p=94"},"modified":"2021-12-06T05:10:40","modified_gmt":"2021-12-06T05:10:40","slug":"ibm-data-science-professional-certificate-capstone-finding-the-best-places-to-open-a-breakfast-restaurant-in-calgary","status":"publish","type":"post","link":"https:\/\/raelynn.hattie.codes\/blog\/2019\/01\/27\/ibm-data-science-professional-certificate-capstone-finding-the-best-places-to-open-a-breakfast-restaurant-in-calgary\/","title":{"rendered":"IBM Data Science Professional Certificate Capstone: Finding the Best Places to Open a Breakfast Restaurant in Calgary"},"content":{"rendered":"\n<p>I decided to combine my love for Calgarian breakfast restaurants (I visited over 50 in 2018 alone) and data science to create my capstone: a report on the best communities in Calgary to open a new breakfast restaurant in, and what to look for when picking a breakfast restaurant location. <\/p>\n\n\n\n<p>There are 2 major facts that can be gleaned from the analysis performed:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Traffic affects how many breakfast restaurants a community can support&#8230;<\/h3>\n\n\n\n<p>The number of vehicles traveling through a given community has a Pearson correlation coefficient of roughly 0.5 with how many breakfast restaurants are in that community (the two variables have a cubic relationship). Communities that are significantly below the curve may be good places to open restaurants, or may have other factors dragging them down.<\/p>\n\n\n<style>\n       .errordiv { padding:10px; margin:10px; border: 1px solid #555555;color: #000000;background-color: #f8f8f8; width:500px; }#advanced_iframe {visibility:visible;opacity:1;vertical-align:top;}.ai-info-bottom-iframe { position: fixed; z-index: 10000; bottom:0; left: 0; margin: 0px; text-align: center; width: 100%; background-color: #ff9999; padding-left: 5px;padding-bottom: 5px; border-top: 1px solid #aaa } a.ai-bold {font-weight: bold;}#ai-layer-div-advanced_iframe p {height:100%;margin:0;padding:0}<\/style><script type=\"text\/javascript\">var ai_iframe_width_advanced_iframe = 0;var ai_iframe_height_advanced_iframe = 0;var aiOnloadScrollTop=\"true\";var aiShowDebug=false;\n\t\tif (typeof aiReadyCallbacks === 'undefined') {\n\t\t\tvar aiReadyCallbacks = [];\n\t\t} else if (!(aiReadyCallbacks instanceof Array)) {\n\t\t\tvar aiReadyCallbacks = [];\n\t\t}    function aiShowIframeId(id_iframe) { jQuery(\"#\"+id_iframe).css(\"visibility\", \"visible\");    }    function aiResizeIframeHeight(height) { aiResizeIframeHeight(height,advanced_iframe); }    function aiResizeIframeHeightId(height,width,id) {aiResizeIframeHeightById(id,height);}<\/script><iframe id=\"advanced_iframe\"  name=\"advanced_iframe\"  src=\"https:\/\/hexaguin.github.io\/Coursera_Capstone\/figs\/poly_regress.html\"  width=\"100%\"  height=\"500\"  frameborder=\"0\"  border=\"0\"  allowtransparency=\"true\"  loading=\"lazy\"  style=\";border-width: 0px;;border: none;;width:100%;;height:500px;\" ><\/iframe><script type=\"text\/javascript\">var ifrm_advanced_iframe = document.getElementById(\"advanced_iframe\");var hiddenTabsDoneadvanced_iframe = false;\nfunction resizeCallbackadvanced_iframe() {}<\/script><script type=\"text\/javascript\"><\/script><p style=\"display:block !important; visibility:visible !important;margin: -18px 14px 0 0;padding-left: 3px;padding-top:3px;background: white; overflow: hidden; position: relative; line-height:15px;width: fit-content;\"><small style=\"display:block !important;visibility:visible !important\">powered by Advanced iFrame<\/small><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">&#8230;but resident demographics don&#8217;t.<\/h3>\n\n\n\n<p>There is no significant correlation between any age group of residents, even millennials, and the number of breakfast restaurants in a community. Most breakfast patrons seem to prefer to get breakfast on the way to work, or in centralised locations that they can meet their friends at (like 17th Ave).<\/p>\n\n\n<style>\n       .errordiv { padding:10px; margin:10px; border: 1px solid #555555;color: #000000;background-color: #f8f8f8; width:500px; }<script>if (console && console.error) { console.error(\"Advanced iframe configuration error: Duplicate id \\\"advanced_iframe\" for iframes found. Not all iframes will work like expected! Please give each iframe a unique id!\") }<\/script>#advanced_iframe {visibility:visible;opacity:1;vertical-align:top;}.ai-info-bottom-iframe { position: fixed; z-index: 10000; bottom:0; left: 0; margin: 0px; text-align: center; width: 100%; background-color: #ff9999; padding-left: 5px;padding-bottom: 5px; border-top: 1px solid #aaa } a.ai-bold {font-weight: bold;}#ai-layer-div-advanced_iframe p {height:100%;margin:0;padding:0}<\/style><script type=\"text\/javascript\">var ai_iframe_width_advanced_iframe = 0;var ai_iframe_height_advanced_iframe = 0;var aiOnloadScrollTop=\"true\";var aiShowDebug=false;\n\t\tif (typeof aiReadyCallbacks === 'undefined') {\n\t\t\tvar aiReadyCallbacks = [];\n\t\t} else if (!(aiReadyCallbacks instanceof Array)) {\n\t\t\tvar aiReadyCallbacks = [];\n\t\t}    function aiShowIframeId(id_iframe) { jQuery(\"#\"+id_iframe).css(\"visibility\", \"visible\");    }    function aiResizeIframeHeight(height) { aiResizeIframeHeight(height,advanced_iframe); }    function aiResizeIframeHeightId(height,width,id) {aiResizeIframeHeightById(id,height);}<\/script><iframe id=\"advanced_iframe\"  name=\"advanced_iframe\"  src=\"https:\/\/hexaguin.github.io\/Coursera_Capstone\/figs\/breakfast_by_age.html\"  width=\"100%\"  height=\"500\"  frameborder=\"0\"  border=\"0\"  allowtransparency=\"true\"  loading=\"lazy\"  style=\";border-width: 0px;;border: none;;width:100%;;height:500px;\" ><\/iframe><script type=\"text\/javascript\">var ifrm_advanced_iframe = document.getElementById(\"advanced_iframe\");var hiddenTabsDoneadvanced_iframe = false;\nfunction resizeCallbackadvanced_iframe() {}<\/script><script type=\"text\/javascript\"><\/script><p style=\"display:block !important; visibility:visible !important;margin: -18px 14px 0 0;padding-left: 3px;padding-top:3px;background: white; overflow: hidden; position: relative; line-height:15px;width: fit-content;\"><small style=\"display:block !important;visibility:visible !important\">powered by Advanced iFrame<\/small><\/p>\n\n\n\n<p>You can view the report <a href=\"https:\/\/hexaguin.github.io\/Coursera_Capstone\/\">here<\/a>, as well as the <a href=\"https:\/\/github.com\/hexaguin\/Coursera_Capstone\/blob\/master\/Breakfast-Locations.ipynb\">notebook<\/a>. Just a warning, however: the notebook is big, messy, and won&#8217;t display properly in Github&#8217;s notebook viewer due to a dependence on iframes. You&#8217;ll need to execute the notebook yourself, with your own API keys, if you want to see it as intended. This is an unfortunate result of the fact that Folium maps will not render properly in JupyterLab above a certain number of features. Don&#8217;t worry, though, all the best visualizations were embedded into the report anyways.<\/p>\n\n\n\n<p>The pancake vector art on this blog post is owned by Emoji One, and licenced under CC BY-SA 4.0.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I decided to combine my love for Calgarian breakfast restaurants (I visited over 50 in 2018 alone) and data science to create my capstone: a report on the best communities in Calgary to open a new breakfast restaurant in, and what to look for when picking a breakfast restaurant location. There are 2 major facts<\/p>\n<div class=\"blog-grid-button\"><a class href=\"https:\/\/raelynn.hattie.codes\/blog\/2019\/01\/27\/ibm-data-science-professional-certificate-capstone-finding-the-best-places-to-open-a-breakfast-restaurant-in-calgary\/\">Read More <i class=\"fa fa-arrow-right\"><\/i><\/a><\/div>\n","protected":false},"author":1,"featured_media":96,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,18],"tags":[21,19,23,22,20],"class_list":["post-94","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-code","category-data","tag-calgary","tag-data-science","tag-plotly","tag-python","tag-regression"],"_links":{"self":[{"href":"https:\/\/raelynn.hattie.codes\/blog\/wp-json\/wp\/v2\/posts\/94"}],"collection":[{"href":"https:\/\/raelynn.hattie.codes\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/raelynn.hattie.codes\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/raelynn.hattie.codes\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/raelynn.hattie.codes\/blog\/wp-json\/wp\/v2\/comments?post=94"}],"version-history":[{"count":5,"href":"https:\/\/raelynn.hattie.codes\/blog\/wp-json\/wp\/v2\/posts\/94\/revisions"}],"predecessor-version":[{"id":102,"href":"https:\/\/raelynn.hattie.codes\/blog\/wp-json\/wp\/v2\/posts\/94\/revisions\/102"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/raelynn.hattie.codes\/blog\/wp-json\/wp\/v2\/media\/96"}],"wp:attachment":[{"href":"https:\/\/raelynn.hattie.codes\/blog\/wp-json\/wp\/v2\/media?parent=94"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raelynn.hattie.codes\/blog\/wp-json\/wp\/v2\/categories?post=94"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raelynn.hattie.codes\/blog\/wp-json\/wp\/v2\/tags?post=94"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}