次のような構造を持つファイルを読み取る必要があります。
1 2 3 4 5
6 7 8 9 10
11 22
13 14 15 16 17
18 19 20 21 22
23 24
このファイルを単一の配列で読み取る必要があります = [ 1,2,3, ... , 23, 24]
numpyでそれを行う方法?? 使い方:
Array = np.genfromtxt(pathToFile, dtype=float, skip_header=1, comments='/')
うまくいきませんでした:
Line #796537 (got 2 columns instead of 5)