📅  最后修改于: 2022-03-11 14:46:02.018000             🧑  作者: Mango
df = df.drop_duplicates(subset=['Column1', 'Column2'], keep='first')
# Exemple
import pandas as pd
df = pd.DataFrame({"A":["foo", "foo", "foo", "bar"], "B":[0,1,1,1], "C":["A","A","B","A"]})
df.drop_duplicates(subset=['A', 'C'], keep=False)