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
df.drop_duplicates(inplace=True)
you have to add inplace= True