📜  在 pandas 中只保留一个副本 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:20.354000             🧑  作者: Mango

代码示例1
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)