Data Cleaning With Python, Data Analysis, Dataframes Python, Marketing Analytics.
while subsetting which returns everything except inconsistent rows. inconsistent_categories = set(study_data['blood_type']).difference(categories['blood_type']) inconsistent_rows = study_data['blood_type'].isin(inconsistent_categories) inconsistent_data = study_data[inconsistent_rows] # Drop