correct column order
Browse files- appStore/target.py +2 -2
appStore/target.py
CHANGED
@@ -116,8 +116,6 @@ def target_display():
|
|
116 |
hits.drop(columns=['Target Label','Netzero Score','GHG Score','Action Label',
|
117 |
'Action Score','Policies_Plans Label','Indicator Label',
|
118 |
'Policies_Plans Score','Conditional Score'],inplace=True)
|
119 |
-
hits = hits[['keep','text','Target Score','Netzero Label','GHG Label',
|
120 |
-
'Conditional Label','Sector Label']]
|
121 |
hits = hits.sort_values(by=['Target Score'], ascending=False)
|
122 |
hits = hits.reset_index(drop=True)
|
123 |
|
@@ -258,6 +256,8 @@ def filter_dataframe(df: pd.DataFrame) -> pd.DataFrame:
|
|
258 |
if user_text_input:
|
259 |
df = df[df[column].str.contains(user_text_input)]
|
260 |
df['keep'] = True
|
|
|
|
|
261 |
df = st.data_editor(
|
262 |
df,
|
263 |
column_config={
|
|
|
116 |
hits.drop(columns=['Target Label','Netzero Score','GHG Score','Action Label',
|
117 |
'Action Score','Policies_Plans Label','Indicator Label',
|
118 |
'Policies_Plans Score','Conditional Score'],inplace=True)
|
|
|
|
|
119 |
hits = hits.sort_values(by=['Target Score'], ascending=False)
|
120 |
hits = hits.reset_index(drop=True)
|
121 |
|
|
|
256 |
if user_text_input:
|
257 |
df = df[df[column].str.contains(user_text_input)]
|
258 |
df['keep'] = True
|
259 |
+
df = df[['keep','text','Target Score','Netzero Label','GHG Label',
|
260 |
+
'Conditional Label','Sector Label']]
|
261 |
df = st.data_editor(
|
262 |
df,
|
263 |
column_config={
|