Spaces:
Sleeping
Sleeping
File size: 484 Bytes
4252f3b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
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: |