質問編集履歴

1

エラーメッセージの追記

2020/05/29 03:58

投稿

norisukesan
norisukesan

スコア2

test CHANGED
File without changes
test CHANGED
@@ -33,3 +33,57 @@
33
33
  僕の他の質問のところでも記しているのですが、
34
34
 
35
35
  これの目的は24時間のx軸の散布図をプロットすることです
36
+
37
+
38
+
39
+ #エラーメッセージ
40
+
41
+ ```エラー
42
+
43
+ ValueError Traceback (most recent call last)
44
+
45
+ <ipython-input-57-eeca62a1aff4> in <module>
46
+
47
+ 17 xlist=str(xlist)
48
+
49
+ 18 #時間(文字列)をtime型に変換
50
+
51
+ ---> 19 xlist=datetime.datetime.strptime(xlist, "%H:%M:%S").time()
52
+
53
+ 20 #xlist=time(xlist,"%H:%M:%S")
54
+
55
+ 21
56
+
57
+
58
+
59
+ ~\anaconda3\lib\_strptime.py in _strptime_datetime(cls, data_string, format)
60
+
61
+ 575 """Return a class cls instance based on the input string and the
62
+
63
+ 576 format string."""
64
+
65
+ --> 577 tt, fraction, gmtoff_fraction = _strptime(data_string, format)
66
+
67
+ 578 tzname, gmtoff = tt[-2:]
68
+
69
+ 579 args = tt[:6] + (fraction,)
70
+
71
+
72
+
73
+ ~\anaconda3\lib\_strptime.py in _strptime(data_string, format)
74
+
75
+ 357 if not found:
76
+
77
+ 358 raise ValueError("time data %r does not match format %r" %
78
+
79
+ --> 359 (data_string, format))
80
+
81
+ 360 if len(data_string) != found.end():
82
+
83
+ 361 raise ValueError("unconverted data remains: %s" %
84
+
85
+
86
+
87
+ ValueError: time data '0 08:40:00\n1 08:50:00\n2 09:00:00\n3 09:10:00\n4 09:20:00\n ... \n10571 14:30:00\n10572 14:40:00\n10573 14:50:00\n10574 15:00:00\n10575 15:10:00\nName: dtime, Length: 10576, dtype: object' does not match format '%H:%M:%S'
88
+
89
+ ```