Updated Testuser Count
This commit is contained in:
10
src/step2.py
10
src/step2.py
@@ -2,7 +2,7 @@ import pandas as pd
|
||||
from Levenshtein import distance
|
||||
|
||||
|
||||
def compare_data(new, sys):
|
||||
def compare_data(new, sys, count_test):
|
||||
print(f"\nEinträge in Import Liste: {len(new)}")
|
||||
print(f"Einträge in System Liste: {len(sys)}")
|
||||
|
||||
@@ -23,7 +23,7 @@ def compare_data(new, sys):
|
||||
only_new = merged_df[merged_df['_merge'] == 'left_only'].drop(columns=['_merge'])
|
||||
only_sys = merged_df[merged_df['_merge'] == 'right_only'].drop(columns=['_merge'])
|
||||
|
||||
print_status(matches, only_new, only_sys)
|
||||
print_status(matches, only_new, only_sys, count_test)
|
||||
search_typos(only_new[['name', 'vorname']], only_sys[['name', 'vorname']])
|
||||
|
||||
return matches, only_new
|
||||
@@ -44,7 +44,7 @@ def search_typos(new, sys):
|
||||
print('Mögliche Tippfehler: keine Fehler gefunden!')
|
||||
|
||||
|
||||
def print_status(matches, new, old):
|
||||
print("\nAnzahl Übereinstimmungen:", len(matches))
|
||||
def print_status(matches, new, old, count_test):
|
||||
print("\nAnzahl Übereinstimmungen:", len(matches) + count_test)
|
||||
print("Anzahl neuer Nutzer:", len(new))
|
||||
print("Anzahl veralteter Nutzer:", len(old))
|
||||
print("Anzahl veralteter Nutzer:", len(old) - count_test)
|
||||
|
||||
Reference in New Issue
Block a user