Update appStore/tapp_display.py
Browse files- appStore/tapp_display.py +2 -1
appStore/tapp_display.py
CHANGED
@@ -57,15 +57,16 @@ def target_display():
|
|
57 |
with c1:
|
58 |
st.write('**Target Related Paragraphs**: `{}`'.format(count_target))
|
59 |
st.write('**Netzero Related Paragraphs**: `{}`'.format(count_netzero))
|
|
|
60 |
with c2:
|
61 |
st.write('**GHG Target Related Paragraphs**: `{}`'.format(count_ghg))
|
62 |
st.write('**NonGHG Target Related Paragraphs**: `{}`'.format(count_nonghg))
|
|
|
63 |
st.write('----------------')
|
64 |
cols = list(hits.columns)
|
65 |
sector_cols = list(set(cols) - {'TargetLabel','MitigationLabel','AdaptationLabel','GHGLabel','NetzeroLabel','NonGHGLabel','text','keep','page'})
|
66 |
placeholder= []
|
67 |
for col in sector_cols:
|
68 |
-
st.write(col)
|
69 |
placeholder.append({'Sector':col,'Count':sum(hits[col] == True)})
|
70 |
sector_df = pd.DataFrame.from_dict(placeholder)
|
71 |
fig = px.bar(sector_df, x='Sector', y='Count')
|
|
|
57 |
with c1:
|
58 |
st.write('**Target Related Paragraphs**: `{}`'.format(count_target))
|
59 |
st.write('**Netzero Related Paragraphs**: `{}`'.format(count_netzero))
|
60 |
+
st.write('**Mitigation Related Paragraphs**: `{}`'.format(count_mitigation))
|
61 |
with c2:
|
62 |
st.write('**GHG Target Related Paragraphs**: `{}`'.format(count_ghg))
|
63 |
st.write('**NonGHG Target Related Paragraphs**: `{}`'.format(count_nonghg))
|
64 |
+
st.write('**Adaptation Related Paragraphs**: `{}`'.format(count_adaptation))
|
65 |
st.write('----------------')
|
66 |
cols = list(hits.columns)
|
67 |
sector_cols = list(set(cols) - {'TargetLabel','MitigationLabel','AdaptationLabel','GHGLabel','NetzeroLabel','NonGHGLabel','text','keep','page'})
|
68 |
placeholder= []
|
69 |
for col in sector_cols:
|
|
|
70 |
placeholder.append({'Sector':col,'Count':sum(hits[col] == True)})
|
71 |
sector_df = pd.DataFrame.from_dict(placeholder)
|
72 |
fig = px.bar(sector_df, x='Sector', y='Count')
|