Seetha commited on
Commit
2b6e4d6
1 Parent(s): 932f2b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -190,16 +190,16 @@ def main():
190
  for i in uni:
191
  df_new = final_list1[final_list1['Id'] == i]
192
  uni1 = df_new['Id'].unique()
193
- st.write('df_new',df_new.values)
194
- if 'E' not in df_new.values:
195
- li.append(uni1)
196
- st.write('li',li)
197
- out = np.concatenate(li).ravel()
198
- li_pan = pd.DataFrame(out,columns=['Id'])
199
- df3 = pd.merge(final_list1, li_pan[['Id']], on='Id', how='left', indicator=True) \
200
- .query("_merge == 'left_only'") \
201
- .drop("_merge",axis=1)
202
-
203
  #df = df3.groupby(['Id','Fullsentence','causeOrEffect', 'Labellevel1', 'Labellevel2'])['Component'].apply(', '.join).reset_index()
204
  #st.write(df)
205
 
 
190
  for i in uni:
191
  df_new = final_list1[final_list1['Id'] == i]
192
  uni1 = df_new['Id'].unique()
193
+
194
+ # if 'E' not in df_new.values:
195
+ # li.append(uni1)
196
+ # out = np.concatenate(li).ravel()
197
+ # li_pan = pd.DataFrame(out,columns=['Id'])
198
+ # df3 = pd.merge(final_list1, li_pan[['Id']], on='Id', how='left', indicator=True) \
199
+ # .query("_merge == 'left_only'") \
200
+ # .drop("_merge",axis=1)
201
+
202
+ df3 = final_list1
203
  #df = df3.groupby(['Id','Fullsentence','causeOrEffect', 'Labellevel1', 'Labellevel2'])['Component'].apply(', '.join).reset_index()
204
  #st.write(df)
205