回答編集履歴
1
修正
test
CHANGED
@@ -26,11 +26,11 @@
|
|
26
26
|
|
27
27
|
|
28
28
|
|
29
|
-
def zfill_1
|
29
|
+
def zfill_12(t):
|
30
30
|
|
31
31
|
return str(t).zfill(12)
|
32
32
|
|
33
|
-
df["time"] = df["time"].apply(zfill_1
|
33
|
+
df["time"] = df["time"].apply(zfill_12) # 時をゼロ埋め
|
34
34
|
|
35
35
|
df["time"] = pd.to_datetime(df["time"], format="%H%M%S%f") # 文字列→時刻
|
36
36
|
|