Data Cleaning With Python, Data Analysis, Dataframes Python, Marketing Analytics.
duplicates = height_weight.duplicated(subset = column_names, keep = False) Now, to get a better view of duplictaes we use the sort method : height_weight[duplicates].sort_values(by = 'first_name') We find that there are four sets of duplicated rows, the first 2 being complete duplicates of each