Sitemap
TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

How to build interactive dashboards in Python using Streamlit

Level up your data science projects with interactive dashboards

3 min readJun 11, 2020

--

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 hello

Import 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

--

--

TDS Archive
TDS Archive

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Nikita sharma
Nikita sharma

Written by Nikita sharma

Data Scientist | Python programmer

No responses yet