ppsingh commited on
Commit
7d1ddb4
1 Parent(s): b519b74
Files changed (2) hide show
  1. app.py +2 -2
  2. appStore/target.py +3 -2
app.py CHANGED
@@ -62,9 +62,9 @@ with st.expander("ℹ️ - About this app", expanded=False):
62
  resources and capabilities. A “conditional contribution” is one \
63
  that countries would undertake if international means of support \
64
  are provided, or other conditions are met.
65
- - **Action**:Actions are an intention to implement specific means of \
66
  achieving GHG reductions, usually in forms of concrete projects.
67
- - **Policies and Plans**:Policies are domestic planning documents \
68
  such as policies, regulations or guidlines, and Plans are broader \
69
  than specific policies or actions, such as a general intention \
70
  to ‘improve efficiency’, ‘develop renewable energy’, etc. \
 
62
  resources and capabilities. A “conditional contribution” is one \
63
  that countries would undertake if international means of support \
64
  are provided, or other conditions are met.
65
+ - **Action**: Actions are an intention to implement specific means of \
66
  achieving GHG reductions, usually in forms of concrete projects.
67
+ - **Policies and Plans**: Policies are domestic planning documents \
68
  such as policies, regulations or guidlines, and Plans are broader \
69
  than specific policies or actions, such as a general intention \
70
  to ‘improve efficiency’, ‘develop renewable energy’, etc. \
appStore/target.py CHANGED
@@ -44,8 +44,9 @@ def to_excel(df,hits):
44
  output = BytesIO()
45
  writer = pd.ExcelWriter(output, engine='xlsxwriter')
46
  df.to_excel(writer, index=False, sheet_name='rawdata')
47
- hits = hits[hits.keep == True]
48
- hits = hits.reset_index(drop=True)
 
49
  # hits = hits.drop(columns = ['Target Score','Netzero Score','GHG Score'])
50
  hits.to_excel(writer,index=False,sheet_name = 'Target')
51
  workbook = writer.book
 
44
  output = BytesIO()
45
  writer = pd.ExcelWriter(output, engine='xlsxwriter')
46
  df.to_excel(writer, index=False, sheet_name='rawdata')
47
+ if 'keep' in hits.columns:
48
+ hits = hits[hits.keep == True]
49
+ hits = hits.reset_index(drop=True)
50
  # hits = hits.drop(columns = ['Target Score','Netzero Score','GHG Score'])
51
  hits.to_excel(writer,index=False,sheet_name = 'Target')
52
  workbook = writer.book