sneves commited on
Commit
1dc6ca7
·
verified ·
1 Parent(s): 426a82e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -20,7 +20,6 @@ with st.sidebar:
20
  year_list = sorted(year_list)
21
 
22
  selected_year = st.selectbox('Select a year', year_list, index=len(year_list)-1)
23
- df_selected_year = df[df.Year == selected_year]
24
 
25
  cik_list = list(df.CIK.unique())[::-1]
26
  cik_list = sorted(cik_list)
@@ -49,7 +48,7 @@ with col2:
49
  wc_list = ['E_Text', 'S_Text', 'G_Text']
50
 
51
  for x in wc_list:
52
- row = to_display.loc[selected_year]
53
  text = row.loc[x]
54
  text = re.sub(r'[^A-Za-z\s]', '', text)
55
  text = text.lower()
 
20
  year_list = sorted(year_list)
21
 
22
  selected_year = st.selectbox('Select a year', year_list, index=len(year_list)-1)
 
23
 
24
  cik_list = list(df.CIK.unique())[::-1]
25
  cik_list = sorted(cik_list)
 
48
  wc_list = ['E_Text', 'S_Text', 'G_Text']
49
 
50
  for x in wc_list:
51
+ row = df_selected_cik.loc[selected_year]
52
  text = row.loc[x]
53
  text = re.sub(r'[^A-Za-z\s]', '', text)
54
  text = text.lower()