You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseValueError(Fore.RED+"[ERROR] Possible Error found at index {} with data: [{}: {}], [{}: {}]".format(row_index, row_target_label, row_target, col_target_label, col_target))
raiseValueError(Fore.RED+"[ERROR] Possible Error found at index {} with data: [{}: {}], [{}: {}]".format(row_index, row_target_label, row_target, col_target_label, col_target))
print("Agency [{}] at index {} Found in {}".format(input_str, row_index, i))
503
504
504
-
error_flag=False
505
+
# error_flag = False
505
506
insert_df[agency_column_name][row_index] = (i+1)
507
+
match_count+=1
508
+
509
+
# break
506
510
507
-
break
508
511
509
-
iferror_flagisTrue:
510
-
raiseValueError(Fore.RED+"[ERROR]: Agency [{}] at index {} cannot be found in all the regex lists".format(str(target_df[agency_column_name][row_index]), row_index))
512
+
ifmatch_count!=1:
511
513
insert_df[agency_column_name][row_index] =-1
514
+
raiseValueError(Fore.RED+"[ERROR]: Agency [{}] at index {} cannot be found or have more than one matches".format(str(target_df[agency_column_name][row_index]), row_index))
0 commit comments