Pandas: Remover duplicados

    df.drop_duplicates(subset=['Identificação', 'Link'], keep='first', inplace=True)
    # keep: {‘first’, ‘last’, False}, default ‘first’
    # first: Drop duplicates except for the first occurrence.
    # last: Drop duplicates except for the last occurrence.
    # False: Drop all duplicates.

Comentários