質問するログイン新規登録

質問編集履歴

1

エラーメッセージの添付

2021/12/02 14:23

投稿

01294941
01294941

スコア8

title CHANGED
File without changes
body CHANGED
@@ -17,4 +17,34 @@
17
17
  x=np.loadtxt(outfile,dtype = float,delimiter='\t')
18
18
  x=np.loadtxt(outfile,dtype = None,delimiter=',')など
19
19
 
20
+ エラーメッセージ
21
+
22
+ ---------------------------------------------------------------------------
23
+ ValueError Traceback (most recent call last)
24
+ <ipython-input-29-3ae76efe3c7e> in <module>
25
+ ----> 1 x=np.loadtxt(outfile,dtype = float,delimiter='\t')
26
+ ~/anaconda3/lib/python3.8/site-packages/numpy/lib/npyio.py in loadtxt(fname, dtype, comments, delimiter, converters, skiprows, usecols, unpack, ndmin, encoding, max_rows)
27
+ 1137 # converting the data
28
+ 1138 X = None
29
+ -> 1139 for x in read_data(_loadtxt_chunksize):
30
+ 1140 if X is None:
31
+ 1141 X = np.array(x, dtype)
32
+ ~/anaconda3/lib/python3.8/site-packages/numpy/lib/npyio.py in read_data(chunk_size)
33
+ 1065
34
+ 1066 # Convert each value according to its column and store
35
+ -> 1067 items = [conv(val) for (conv, val) in zip(converters, vals)]
36
+ 1068
37
+ 1069 # Then pack it according to the dtype's nesting
38
+ ~/anaconda3/lib/python3.8/site-packages/numpy/lib/npyio.py in <listcomp>(.0)
39
+ 1065
40
+ 1066 # Convert each value according to its column and store
41
+ -> 1067 items = [conv(val) for (conv, val) in zip(converters, vals)]
42
+ 1068
43
+ 1069 # Then pack it according to the dtype's nesting
44
+ ~/anaconda3/lib/python3.8/site-packages/numpy/lib/npyio.py in floatconv(x)
45
+ 761 if '0x' in x:
46
+ 762 return float.fromhex(x)
47
+ --> 763 return float(x)
48
+ 764
49
+ 765 typ = dtype.type
20
- ValueError: could not convert string to float: '10,"30'
50
+ ValueError: could not convert string to float: '10,"30