回答編集履歴
1
Update
test
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
df = pd.DataFrame({'char': ['A', 'B', 'C', 'D', 'A']})
|
10
10
|
|
11
|
-
dfx = df.drop_duplicates(subset=['char'])
|
11
|
+
dfx = df.drop_duplicates(subset=['char'], keep=False)
|
12
12
|
|
13
13
|
|
14
14
|
|
@@ -36,8 +36,6 @@
|
|
36
36
|
|
37
37
|
char
|
38
38
|
|
39
|
-
0 A
|
40
|
-
|
41
39
|
1 B
|
42
40
|
|
43
41
|
2 C
|