drop duplicates from pandas based on index code example Example: drop duplicate index pandas df3 = df3[~df3.index.duplicated(keep='first')]