Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -265,8 +265,8 @@ def main():
|
|
265 |
j = df_final.loc[df_final['Id'] == i]
|
266 |
cause_tab = j.loc[j['causeOrEffect'] == 'cause']
|
267 |
effect_tab = j.loc[j['causeOrEffect'] == 'effect']
|
268 |
-
cause_coun_NP = (cause_tab.
|
269 |
-
effect_coun_NP = (effect_tab.
|
270 |
|
271 |
if (cause_coun_NP > 0) and (effect_coun_NP > 0):
|
272 |
count_NP = cause_coun_NP if cause_coun_NP >= effect_coun_NP else effect_coun_NP
|
|
|
265 |
j = df_final.loc[df_final['Id'] == i]
|
266 |
cause_tab = j.loc[j['causeOrEffect'] == 'cause']
|
267 |
effect_tab = j.loc[j['causeOrEffect'] == 'effect']
|
268 |
+
cause_coun_NP = (cause_tab.Labellevel2 == 'Non-performance').sum()
|
269 |
+
effect_coun_NP = (effect_tab.Labellevel2 == 'Non-performance').sum()
|
270 |
|
271 |
if (cause_coun_NP > 0) and (effect_coun_NP > 0):
|
272 |
count_NP = cause_coun_NP if cause_coun_NP >= effect_coun_NP else effect_coun_NP
|