What is the syntax for removing duplicate rows of a pandas dataframe (where all of the columns match)?
I tried using:
df.drop_duplicates()
but it doesn’t work.
Advertisement
Answer
try this
JavaScript
x
2
1
df.drop_duplicates(inplace=True)
2
you have to add inplace= True