menikev commited on
Commit
b7e92a0
1 Parent(s): 9ba1c25

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -29,6 +29,11 @@ def load_and_clean_data():
29
 
30
  df = load_and_clean_data()
31
 
 
 
 
 
 
32
  # Sidebar Filters
33
  domain_options = df['Domain'].dropna().unique()
34
  channel_options = df['Channel'].dropna().unique()
@@ -49,10 +54,6 @@ df_filtered = df[(df['Domain'].isin(domain_filter)) &
49
  # Define a color palette for consistent visualization styles
50
  color_palette = px.colors.sequential.Viridis
51
 
52
- # Page navigation
53
- # Page navigation setup
54
- page_names = ["Overview", "Sentiment Analysis", "Discrimination Analysis", "Channel Analysis"]
55
- page = st.sidebar.selectbox("Choose a page", page_names)
56
 
57
  # Visualisation for Domain Distribution
58
  def create_pie_chart(df, column, title):
 
29
 
30
  df = load_and_clean_data()
31
 
32
+
33
+ # Page navigation setup
34
+ page_names = ["Overview", "Sentiment Analysis", "Discrimination Analysis", "Channel Analysis"]
35
+ page = st.sidebar.selectbox("Choose a page", page_names)
36
+
37
  # Sidebar Filters
38
  domain_options = df['Domain'].dropna().unique()
39
  channel_options = df['Channel'].dropna().unique()
 
54
  # Define a color palette for consistent visualization styles
55
  color_palette = px.colors.sequential.Viridis
56
 
 
 
 
 
57
 
58
  # Visualisation for Domain Distribution
59
  def create_pie_chart(df, column, title):