SyntaxFix
Write A Post
Hire A Developer
Questions
You can drop index duplicates with 'drop_duplicates':
df.loc[df.index.drop_duplicates(keep='first')]