import pandas as pd


def deduplicate(df):
    df.index = pd.to_datetime(df.index, utc=True)
    fi = ~df.index.duplicated()
    df = df.loc[fi]
    return df

897191d5de2b93ed664b24e675611eb834a9b662
<mask token>

<mask token>


def deduplicate(df):
    df.index = pd.to_datetime(df.index, utc=True)
    fi = ~df.index.duplicated()
    df = df.loc[fi]
    return df

import pandas as pd


def deduplicate(df):
    df.index = pd.to_datetime(df.index, utc=True)
    fi = ~df.index.duplicated()
    df = df.loc[fi]
    return df
