私のデータ:
a,b,c,d,e,f
1.5,4.8,,6.3
1.60,5.2,6.5,7.2
1.70,5.5,6.6,8.3,5.7
1.80,6.1,6.7,9.7,6.2
1.90,7.1,6.8,11.1,6.7
2,,6.8,12.5,7.3
2.08,,,,7.8
2.1,,7.2
2.2,,8.0
2.3,,8.7
2.4,,9.2,8.2
from pandas import read_csv
ds = read_csv ('lin-nan.dat', index_col=0, sep=',')
Traceback (most recent call last):
File "read_lin.py", line 7, in <module>
ds = read_csv ('lin-nan.dat', index_col=0, sep=',')
File "/home/nbecker/.local/lib/python2.7/site-packages/pandas/io/parsers.py", line 253, in read_csv
return _read(TextParser, filepath_or_buffer, kdict)
File "/home/nbecker/.local/lib/python2.7/site-packages/pandas/io/parsers.py", line 202, in _read
return parser.get_chunk()
File "/home/nbecker/.local/lib/python2.7/site-packages/pandas/io/parsers.py", line 844, in get_chunk
alldata = self._rows_to_cols(content)
File "/home/nbecker/.local/lib/python2.7/site-packages/pandas/io/parsers.py", line 809, in _rows_to_cols
raise ValueError(msg)
ValueError: Expecting 6 columns, got 5 in row 1