RJuro commited on
Commit
a27bf6f
1 Parent(s): a51c07e

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -0
app.py ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import pandas as pd
3
+ import matplotlib.pyplot as plt
4
+ import seaborn as sns
5
+
6
+
7
+ st.title('My first app')
8
+ st.write("Here's our first APP with Streamlit")
9
+
10
+
11
+ df_courses_year = pd.read_csv('udemy_courses_year.csv')
12
+
13
+
14
+ # Set style for better visuals
15
+ sns.set(style="whitegrid")
16
+
17
+ # Create the plot
18
+ plt.figure(figsize=(10, 6))
19
+ ax = sns.countplot(x='year', data=df_courses_year, palette='viridis')
20
+ ax.set_title('Count of Observations per Year')
21
+ ax.set_xlabel('Year')
22
+ ax.set_ylabel('Count')
23
+ plt.xticks(rotation=45)
24
+
25
+ st.pyplot(plt)