回答編集履歴
2
最初の投稿に戻した
test
CHANGED
@@ -10,6 +10,8 @@
|
|
10
10
|
|
11
11
|
df=pd.DataFrame(data=A)
|
12
12
|
|
13
|
+
df=df[df.duplicated(subset=[0], keep=False)]
|
14
|
+
|
13
15
|
df[df.duplicated(keep=False)==False].apply(list,axis=1).sort_values(0).tolist()
|
14
16
|
|
15
17
|
```
|
1
削除忘れ
test
CHANGED
@@ -10,8 +10,6 @@
|
|
10
10
|
|
11
11
|
df=pd.DataFrame(data=A)
|
12
12
|
|
13
|
-
df=df[df.duplicated(subset=[0], keep=False)]
|
14
|
-
|
15
13
|
df[df.duplicated(keep=False)==False].apply(list,axis=1).sort_values(0).tolist()
|
16
14
|
|
17
15
|
```
|