fix the script

This commit is contained in:
Sylvestre Ledru
2022-01-22 17:37:37 +01:00
parent 387b6b061a
commit 3bb55d3e58
+1 -2
View File
@@ -15,8 +15,7 @@ df.columns.names = ["date"]
as_list = df.index.tolist()
for i in as_list:
idx = as_list.index(i)
t = parsedate(i)
as_list[idx] = datetime.fromtimestamp(time.mktime(t))
as_list[idx] = str(i).split(" ")[0]
df.index = as_list