回答編集履歴
2
不要なprint削除
answer
CHANGED
@@ -5,7 +5,6 @@
|
|
5
5
|
df1 = pd.DataFrame({'列1':['6:00','7:00','8:00','9:00'],
|
6
6
|
'列2':['x1','x2','x1','x2']},
|
7
7
|
index=['A1','A1','B2','B2'])
|
8
|
-
print(df1)
|
9
8
|
|
10
9
|
df2 = pd.DataFrame({'列1':['A1','A1','B2','B2'],
|
11
10
|
'列2':['x1','x2','x1','x2']},
|
1
タイポ修正
answer
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
```Python
|
3
3
|
import pandas as pd
|
4
4
|
|
5
|
-
df1 = pd.DataFrame({'列1':['6:00','
|
5
|
+
df1 = pd.DataFrame({'列1':['6:00','7:00','8:00','9:00'],
|
6
6
|
'列2':['x1','x2','x1','x2']},
|
7
7
|
index=['A1','A1','B2','B2'])
|
8
8
|
print(df1)
|
@@ -18,7 +18,7 @@
|
|
18
18
|
print(df)
|
19
19
|
# 列1 列2 列3
|
20
20
|
# 0 A1 x1 6:00
|
21
|
-
# 1 A1 x2
|
21
|
+
# 1 A1 x2 7:00
|
22
|
-
# 2 B2 x1
|
22
|
+
# 2 B2 x1 8:00
|
23
|
-
# 3 B2 x2
|
23
|
+
# 3 B2 x2 9:00
|
24
24
|
```
|