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
s = "a,b,c\n" + "\n".join([",".join([str(i), str(i+1), str(i+2)]) for i in xrange(500)])
print pd.read_csv(StringIO(s),skiprows=[200, 202], engine='python')
<class 'pandas.core.frame.DataFrame'>
Int64Index: 500 entries, 0 to 499
Data columns (total 3 columns):
a 500 non-null values
b 500 non-null values
c 500 non-null values
dtypes: int64(3)
Somehow, skiprows got removed in python engine except in the code that sniffs for the header. That's why the header isn't getting properly removed. Fix coming.
For example:
has 907 rows.
As does:
whereas:
has 894 rows.
I am on Pandas v0.11.0
The text was updated successfully, but these errors were encountered: