I am using the Olympic data set, and its showing 2 duplicate data records, I am unable to analyze from below snip how it is duplicate?
It is showing duplicate because by default in the .duplicated() the parameter keep is “last” so it is showing the values having duplicates in the last column MEDAL
If you want only the unique values then use the below code:
dupli_data = olympic_data[olympic_data.duplicated(keep = False)]
Dupli_data
Comments
0 comments
Article is closed for comments.