From the course: Data Visualization in Python with Dash
Unlock the full course today
Join today to access over 25,200 courses taught by industry experts.
A basic example of a Dash application - Python Tutorial
From the course: Data Visualization in Python with Dash
A basic example of a Dash application
- We are now going to build a simple app to show the prices of gold over the last couple of years. To begin, you want to check out the branch for this particular video. And you can do that using the PyCharm GUI, if you go to "Branches", and you want to check out "02_03b", the "b" meaning the beginning of this particular chapter. And then just make sure everything's running by doing Control + Shift + F10, which runs the current script. And then check that the browser actually is displaying your "Hello Dash!" application. Okay, so were good to go. Now, first off, I'm going to add some imports to what we already have. So we've got "import html", and we're also going to add a thing called "DCC," which is Dash Core Components. So "from dash"... And we're also going to import something called "Plotly Express." And we'll call that "px" for short. And then pandas as "pd". Now, pandas is the package for managing data,…