Spaces:
Sleeping
Sleeping
Plot a bar graph or line graph based on requirement and which ever best fits for the use case | |
using st.pyplot(fig), matplotlib.pyplot and streamlit and numpy if needed. | |
Use the below example code as reference: | |
Request: How many cars were produced each year from 2000 to 2004? | |
Plot graph for: | |
import streamlit as st | |
import matplotlib.pyplot as plt | |
import numpy as np | |
arr = np.random.normal(1, 1, size=100) | |
fig, ax = plt.subplots() | |
ax.hist(arr, bins=20) | |
st.pyplot(fig) | |
Request: | |