Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -216,7 +216,7 @@ def main():
|
|
216 |
#st.write(df)
|
217 |
|
218 |
#df = df3
|
219 |
-
df3["
|
220 |
df_final = df3[df3['causeOrEffect'] != 'CT']
|
221 |
df3['New string'] = df_final['Component'].replace(r'[##]+', ' ', regex=True)
|
222 |
|
|
|
216 |
#st.write(df)
|
217 |
|
218 |
#df = df3
|
219 |
+
df3["causeOrEffect"].replace({"C": "cause", "E": "effect"}, inplace=True)
|
220 |
df_final = df3[df3['causeOrEffect'] != 'CT']
|
221 |
df3['New string'] = df_final['Component'].replace(r'[##]+', ' ', regex=True)
|
222 |
|