我想删除所有具有相同值的行drop_duplicates(subset=['other_things','Dist_1','Dist_2'])
,但无法获取它。
id other_things Dist_1 Dist_2
1 a a a
2 a b a
3 10 10 10
4 a b a
5 8 12 48
6 8 12 48
id other_things Dist_1 Dist_2
2 a b a
4 a b a
5 8 12 48
6 8 12 48
df = df.drop_duplicates()