回答編集履歴
1
コードを説明に合わせて修正
test
CHANGED
@@ -74,7 +74,7 @@
|
|
74
74
|
|
75
75
|
df = pd.read_csv(io.StringIO(txt), dtype={'time': str})
|
76
76
|
|
77
|
-
# df = pd.read_csv('File.csv', dtype={'
|
77
|
+
# df = pd.read_csv('File.csv', dtype={'time': str})
|
78
78
|
|
79
79
|
# print(df)
|
80
80
|
|
@@ -82,7 +82,7 @@
|
|
82
82
|
|
83
83
|
matrix = df.pivot(index=['date', 'item'], columns='time', values=['num', 'fav'])
|
84
84
|
|
85
|
-
print(matrix)
|
85
|
+
# print(matrix)
|
86
86
|
|
87
87
|
|
88
88
|
|