Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
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 |
|