Answers for "pandas drop rows duplicate index"

8

remove duplicate row in df

df = df.drop_duplicates()
Posted by: Guest on August-19-2020
1

drop duplicate index pandas

df3 = df3[~df3.index.duplicated(keep='first')]
Posted by: Guest on November-12-2020

Code answers related to "pandas drop rows duplicate index"

Python Answers by Framework

Browse Popular Code Answers by Language