Flask is Heavy? Use Matplotlib and Seaborn in Streamlit

WebApp framework for data science and machine learning

Amit Chauhan
The Pythoneers

--

Photo by Davide Baraldi on Unsplash

In this article, we will try to make a visualization chart in streamlit with matplotlib and seaborn library. The streamlit is a new generation web framework for data science and machine learning enthusiasts.

What is streamlit?

It is an open-source web framework to make customizable apps in the field of machine learning and data science.

Topics to be covered

1. Matplotlib
a. Bar chart
b. Histogram
2. Seaborn
a. Count plot
b. Violin plot

Visualization with Matplotlib library in streamlit

Here, we will make a bar chart and histogram with streamlit functionalities. Visualization is an important part of the analysis in the field of data science and machine learning. Exploratory data analysis is playing a crucial role to understand the trend and insights of past data.

We used visual studio to write our streamlit code.

import pandas as pd
import streamlit as st
import matplotlib.pyplot as plt
@st.cache
def load_data():
df = pd.read_csv("ted.csv")
return df

--

--