mirror of
https://github.com/webclinic017/drift.git
synced 2026-07-27 18:57:55 +00:00
4 lines
125 B
Python
4 lines
125 B
Python
import pandas as pd
|
|
|
|
def deduplicate_indexes(df: pd.DataFrame) -> pd.DataFrame: return df[~df.index.duplicated(keep='last')]
|