def reset_named_indices()

in spotify_confidence/analysis/confidence_utils.py [0:0]


def reset_named_indices(df):
    named_indices = [name for name in df.index.names if name is not None]
    if len(named_indices) > 0:
        return df.reset_index(named_indices, drop=True).sort_index()
    else:
        return df