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