New Tutorial: Building Data Apps in Python With Streamlit

I just created a tutorial on building data apps in Python with Streamlit. In many ways, this is the resource I wish I had when I started working with Streamlit two years ago. You can take it for free here!

The tutorial is in a github repo. All the instructions are in the repo’s README file. You can go through the course at your own pace. I expect that most people will finish the course within a few hours.

Demo App

The first milestone in the course is running a demo app that is already in the repo. This app lets you select a state. It then creates a graph that shows how that state’s population has changed over time. The app also displays a dataframe with data on all the states:

Exercises

The core of the tutorial are 4 exercises to improve the app. These exercises cover the most common tasks I do when working with Streamlit:

  1. Create another graph.
  2. Create another select box.
  3. Use the value from the select boxes to determine which graph to show.
  4. Separate the two visualizations (graph and table) using tabs.

Below is a screenshot of the final app you will create. Note that users can now select which demographic to view. And the table which shows all the data is on a separate tab:

Deployment

Finally, the tutorial walks you through deploying the app to the web. This is also free, and allows your friends and family to see the app you created.

Click here to take the course!

Ari Lamstein

Ari Lamstein

I’m a software engineer who focuses on data projects.

I most recently worked as a Staff Data Science Engineer at a marketing analytics consultancy. While there I developed internal tools for our data scientists, ran workshops on data science and mentored data scientists on software engineering.

I have also created several open source projects.