Posts

Showing posts from May, 2020

Getting to know... Qt for Python

Image
I recently took a look at Dash which seems great for data visualization, but I have a project for which I'd love to build a user interface. I previously used PySimpleGUI and the result was to my satisfaction. However, there was something left to be desired. In any case, that brings me to Qt (pronounced "cute") for Python. Let's check out the documentation and see what we can do with it. Headings in this post follow the headings in the documentation. Qt for Python Quick start `pip install PySide2` Right off the bat. The `hello_world.py` seems more difficult to create something simple (versus PySimpleGUI ). However, I imagine all this complexity is what eventually enables a more advanced user interface (I later learn about QtQuick/QML). Remark: I encountered an error for which I tried various environment variable fixes. Eventually the solution which worked for me was this answer from stackoverflow. But I wasn't happy with just implementing the solution...

Getting to know... Dash

This blog is new and I'm not entirely sure on the content I want to build for it. However, this might be the first in the series of "Getting to know... X" where I familiarize myself with a new technology. In any case, this one's for Dash ! Over the past three days I decided to read about Dash . According to the user guide, "Dash is a productive Python framework for building web applications." I began with the Dash User Guide and jumped right to the Dash Tutorial: Part 1. Installation . There was not much here except `pip install dash` Next: Part 2. Layout . In this section of the tutorial, I found the following feature to be useful: Dash includes "hot-reloading", this features is activated by default when you run your app with `app.run_server(debug=True)`. This means that Dash will automatically refresh your browser when you make a change in your code. Of course, the user has the option to turn the feature off `app.run_server(dev_tools_h...

Predicting the Foursquare rating of Taco Bell restaurants

Image
Introduction Background Taco Bell is an American fast food chain which serves Mexican and Tex-Mex foods. According to scrapehero.com , there are currently 7,117 locations in the United States with 824 locations in California. In 2019, there were 7,363 locations worldwide, an increase of 1,467 locations from 5,896 locations in 2010. That is an average increase of 163 locations per year. Meanwhile, consumers are often guided by where they eat based on the ratings of the restaurants they go to. Thus, having a location with a higher rating is lucrative. In other words, when opening a new Taco Bell restaurant, the owner might be interested in opening the restaurant at a location that is biased towards a higher rating. Problem How does a Taco Bell restaurant’s location affect its rating? In this project, our goal is to determine whether or not a restaurant’s location has an impact on its Foursquare venue rating and if so give the relationship. Interest This problem is c...