Member-only story
How to build interactive dashboards in Python using Streamlit
Level up your data science projects with interactive dashboards
If you are working on a visualisation project and want to demo your findings, or if you are hitting the job market and want to create some portfolio projects — interactive dashboards are a great way to provide the information in a good accessible way.
Streamlit
We will be using Python and Streamlit for our interactive dashboards today.
Streamlit’s is an open-source app framework which makes the life easy for data scientist by exploring and understanding data via a beautiful dashboard.
Setting up Streamlit
Let’s first Install Streamlit to our system and then run the hello command just to verify that everything is working. We can kill the running app at any time by Ctrl+c in the terminal.
$ pip install streamlit
$ streamlit helloImport Libraries
After installing Streamlit, let’s import all the libraries we will be using.
import streamlit as st
import pandas as pd
import numpy as np
import pydeck as pdk
import altair as alt
from datetime import datetime
