Files

6 lines
130 B
Python
Raw Permalink Normal View History

import pandas as pd
def deduplicate_indexes(df: pd.DataFrame) -> pd.DataFrame:
return df[~df.index.duplicated(keep="last")]