SaM Import abgeschlossen
This commit is contained in:
@@ -39,3 +39,12 @@ def create_dataframe_system(path):
|
||||
except pd.errors.ParserError as e:
|
||||
print(f"Fehler beim Einlesen der CSV")
|
||||
|
||||
|
||||
# zum Extrahieren von Test- und Funktionsusern
|
||||
def extract_testusers(dataframe, keywords):
|
||||
testdata_df = pd.DataFrame(columns=dataframe.columns)
|
||||
for index, row in dataframe.iterrows():
|
||||
if any(row.str.contains(keywords)):
|
||||
#extract = dataframe.loc[row.str.contains(keywords).name]
|
||||
print(row.str.contains(keywords))
|
||||
return testdata_df
|
||||
|
||||
Reference in New Issue
Block a user