質問編集履歴

1

エラーメッセージの添付

2021/12/02 14:23

投稿

01294941
01294941

スコア8

test CHANGED
File without changes
test CHANGED
@@ -36,4 +36,64 @@
36
36
 
37
37
 
38
38
 
39
+ エラーメッセージ
40
+
41
+
42
+
43
+ ---------------------------------------------------------------------------
44
+
45
+ ValueError Traceback (most recent call last)
46
+
47
+ <ipython-input-29-3ae76efe3c7e> in <module>
48
+
49
+ ----> 1 x=np.loadtxt(outfile,dtype = float,delimiter='\t')
50
+
51
+ ~/anaconda3/lib/python3.8/site-packages/numpy/lib/npyio.py in loadtxt(fname, dtype, comments, delimiter, converters, skiprows, usecols, unpack, ndmin, encoding, max_rows)
52
+
53
+ 1137 # converting the data
54
+
55
+ 1138 X = None
56
+
57
+ -> 1139 for x in read_data(_loadtxt_chunksize):
58
+
59
+ 1140 if X is None:
60
+
61
+ 1141 X = np.array(x, dtype)
62
+
63
+ ~/anaconda3/lib/python3.8/site-packages/numpy/lib/npyio.py in read_data(chunk_size)
64
+
65
+ 1065
66
+
67
+ 1066 # Convert each value according to its column and store
68
+
69
+ -> 1067 items = [conv(val) for (conv, val) in zip(converters, vals)]
70
+
71
+ 1068
72
+
73
+ 1069 # Then pack it according to the dtype's nesting
74
+
75
+ ~/anaconda3/lib/python3.8/site-packages/numpy/lib/npyio.py in <listcomp>(.0)
76
+
77
+ 1065
78
+
79
+ 1066 # Convert each value according to its column and store
80
+
81
+ -> 1067 items = [conv(val) for (conv, val) in zip(converters, vals)]
82
+
83
+ 1068
84
+
85
+ 1069 # Then pack it according to the dtype's nesting
86
+
87
+ ~/anaconda3/lib/python3.8/site-packages/numpy/lib/npyio.py in floatconv(x)
88
+
89
+ 761 if '0x' in x:
90
+
91
+ 762 return float.fromhex(x)
92
+
93
+ --> 763 return float(x)
94
+
95
+ 764
96
+
97
+ 765 typ = dtype.type
98
+
39
- ValueError: could not convert string to float: '10,"30'
99
+ ValueError: could not convert string to float: '10,"30