sneves commited on
Commit
1439995
·
verified ·
1 Parent(s): 463455f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -1,5 +1,10 @@
1
  import streamlit as st
2
  import pandas as pd
 
 
 
 
 
3
 
4
  st.set_page_config(
5
  page_title="ESG for All",
@@ -26,7 +31,7 @@ with st.sidebar:
26
  color_theme_list = ['blues', 'cividis', 'greens', 'inferno', 'magma', 'plasma', 'reds', 'rainbow', 'turbo', 'viridis']
27
  selected_color_theme = st.selectbox('Select a color theme', color_theme_list)
28
 
29
- def make_esgScoresPlot(df, cik)
30
  to_display = df[df['CIK'] == cik]
31
  to_display['Year'] = to_display['Year'].astype('string')
32
  to_display.sort_values('Year', inplace=True)
@@ -49,5 +54,5 @@ with col[1]:
49
  st.markdown('#### ESG Scores')
50
 
51
  esgScoresPlot = make_esgScoresPlot(df, selected_cik)
52
- st.altair_chart(esgScoresPlot, use_container_width=True)
53
 
 
1
  import streamlit as st
2
  import pandas as pd
3
+ import seaborn as sns
4
+ import matplotlib.pyplot as plt
5
+ from wordcloud import WordCloud
6
+ import re
7
+ from wordcloud import STOPWORDS
8
 
9
  st.set_page_config(
10
  page_title="ESG for All",
 
31
  color_theme_list = ['blues', 'cividis', 'greens', 'inferno', 'magma', 'plasma', 'reds', 'rainbow', 'turbo', 'viridis']
32
  selected_color_theme = st.selectbox('Select a color theme', color_theme_list)
33
 
34
+ def make_esgScoresPlot(df, cik):
35
  to_display = df[df['CIK'] == cik]
36
  to_display['Year'] = to_display['Year'].astype('string')
37
  to_display.sort_values('Year', inplace=True)
 
54
  st.markdown('#### ESG Scores')
55
 
56
  esgScoresPlot = make_esgScoresPlot(df, selected_cik)
57
+ esgScoresPlot
58