I have imported a csv using pandas and I now want to remove rows that contain certain wildcards, it might be dev or testing-dashboard - these are part of a larger string in the field.
I've tried various ways to do this for my minus_testing_dashboard variable but none of them work
import numpy as np
import pandas as pd
raw_data = pd.read_csv('No License Key.csv', delimiter = ',', keep_default_na=False, low_memory=False)
selected_raw_data = raw_data[['App Config', 'App Name', 'App UUID', 'Machine ID', 'Estimated Company']].reset_index()
print(selected_raw_data.head(25))
minus_testing_dashboard = selected_raw_data.apply(lambda row: row.astype(str).str.contains('testing-dashboard').any(), axis=1).reset_index()
unique_desktops = minus_testing_dashboard['Machine ID'].nunique()
print(unique_desktops)