pandas drop same index code example
Example 1: drop duplicate index pandas
df3 = df3[~df3.index.duplicated(keep='first')]
Example 2: pandas remove repeated index
df[~df.index.duplicated()]
df3 = df3[~df3.index.duplicated(keep='first')]
df[~df.index.duplicated()]