You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm still having problems with this:
data = ('a:b\n'
'c:d:e\n'
'f:g:h:i\n'
'j:k\n'
'ln\n')
##if first row does not match longest line length, you error out doing this
print pandas.read_csv(StringIO(data),header=None,sep=':')
##even if u specify names..
print pandas.read_csv(StringIO(data),header=None,sep=':',names=list(np.arange(4)))
It would be really awesome if there was a way to force the parser to expect a fixed number of columns.
The text was updated successfully, but these errors were encountered:
In [3]: read_csv(StringIO(data),header=None,sep=':',names=list(np.arange(4)))
Out[3]:
0 1 2 3
0 a b NaN NaN
1 c d e NaN
2 f g h i
3 j k NaN NaN
4 ln NaN NaN NaN
cf #2430
The text was updated successfully, but these errors were encountered: