回答編集履歴

2

ソースの修正

2020/03/31 10:29

投稿

yureighost
yureighost

スコア2183

test CHANGED
@@ -18,4 +18,12 @@
18
18
 
19
19
  print(df[(df.duplicated(subset=["Session"], keep=False)) & (df["Media"] == "B")])
20
20
 
21
+ '''
22
+
23
+ Media ID Entry_Date Session
24
+
25
+ 1 B 001 2020-02-29 10:25:00 東京 2020/04/1 15:00
26
+
27
+ '''
28
+
21
29
  ```

1

ソースの修正

2020/03/31 10:29

投稿

yureighost
yureighost

スコア2183

test CHANGED
@@ -16,8 +16,6 @@
16
16
 
17
17
 
18
18
 
19
- df = df.sort_values(by="Entry_Date", ascending=False)
20
-
21
19
  print(df[(df.duplicated(subset=["Session"], keep=False)) & (df["Media"] == "B")])
22
20
 
23
21
  ```