'No columns to parse from file with format csv path?
this is my data:
0,1979,21,0
1,1963,37,0
2,1954,46,0
3,1940,60,0
4,1932,68,0
5,1922,78,0
6,1916,84,0
7,1912,88,0
8,1899,100,1
this is my code
import pandas as pd
a,b,i = 'R','R',1
pd.read_csv('contact_simulation/A{0}-B{1}-{2}.csv'.format(a,b,i),header = None)
and i get this error
pandas\_libs\parsers.pyx in pandas._libs.parsers.TextReader.__cinit__()
EmptyDataError: No columns to parse from file
I have 270 files to parse and get the last line of it,so how can I do it?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
