pandas delete duplicates from index code example Example: pandas remove repeated index df[~df.index.duplicated()]