Skip to content
Advertisement

What is the syntax for removing duplicate rows in pandas (where all of the columns match)? [closed]

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

you have to add inplace= True

Advertisement