It seems simple, but I can not find information about it on the Internet.
I have a dataframe as below
City State Zip Date Description
Earlham IA 50072-1036 2014-10-10 Postmarket Assurance: Devices
Earlham IA 50072-1036 2014-10-10 Compliance: Devices
Madrid IA 50156-1748 2014-09-10 Drug Quality Assurance
How can I remove duplicates that match 4 of 5 columns? The column is not appropriate Description.
Result will be
City State Zip Date Description
Earlham IA 50072-1036 2014-10-10 Postmarket Assurance: Devices
Madrid IA 50156-1748 2014-09-10 Drug Quality Assurance
I found online that it could work drop_dupilcateswith a parameter subset, but I'm not sure how I can apply it to multiple columns.
source
share