dataframe remove duplicate indexes code example Example: pandas remove repeated index df[~df.index.duplicated()]