From the course: Python for Data Science and Machine Learning Essential Training Part 1
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Line charts in Streamlit - Python Tutorial
From the course: Python for Data Science and Machine Learning Essential Training Part 1
Line charts in Streamlit
- [Instructor] Let's take a deeper dive into creating line charts in Streamlit. So as with the other Streamlit demonstrations that we're doing here inside of code spaces, we need to do a pip install of our libraries. So for this demonstration, our libraries will be time NumPy Panda Streamlit, and matplotlib. We don't need to do a pip install for time, but we do need to do a pip install NumPy pip install pandas. This is just to be super sure that you have the libraries available inside your environment. Do pip install Streamlit. And then lastly, pip install matplotlib. Let's see, there was a small typo here, so I'm going to change that O to B and rerun this. Okay, good. So now we have our libraries available to us. Now we need to import them into our Python file here. So we'll start by importing time. So I say import time, import numpy as np, import pandas as pd, import streamlit as st, and import matplotlib.pyplot as plt. Next, let's create a line chart which will grow over time and…