File size: 538 Bytes
a27bf6f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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)