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
In [10]: pandas.read_csv("speeddating.csv")
Out[10]:
DecisionM IntelligentM freq total
0 5 9 20 NaN
0 6 21 33 NaN
0 7 35 65 NaN
0 8 35 83 NaN
0 9 14 41 NaN
0 10 10 26 NaN
1 5 11 20 NaN
1 6 12 33 NaN
1 7 30 65 NaN
1 8 48 83 NaN
1 9 27 41 NaN
1 10 16 26 NaN
Notice how every column is shifted over by one. I'm confused about this in light of #9294: shouldn't it just die?
Putting the extra comma on the second row causes #9294 .
I'm on Pandas '0.15.2' on Python3 on ArchLinux.
The text was updated successfully, but these errors were encountered:
It appears that if pandas encounters one more column in the first row than in the header, it assumes that the extra column should be used for the index. You can try the option index_col=False, which disables this behavior, though it may just cause things to choke (like in your other issue).
This csv file loads fine:
A small tweak causes the dataset to be silently corrupted:
Notice how every column is shifted over by one. I'm confused about this in light of #9294: shouldn't it just die?
Putting the extra comma on the second row causes #9294 .
I'm on Pandas '0.15.2' on Python3 on ArchLinux.
The text was updated successfully, but these errors were encountered: