SDC_test / app.py
RJuro's picture
Create app.py
a27bf6f verified
raw
history blame
538 Bytes
import streamlit as st
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
st.title('My first app')
st.write("Here's our first APP with Streamlit")
df_courses_year = pd.read_csv('udemy_courses_year.csv')
# Set style for better visuals
sns.set(style="whitegrid")
# Create the plot
plt.figure(figsize=(10, 6))
ax = sns.countplot(x='year', data=df_courses_year, palette='viridis')
ax.set_title('Count of Observations per Year')
ax.set_xlabel('Year')
ax.set_ylabel('Count')
plt.xticks(rotation=45)
st.pyplot(plt)