Skip to content

read_csv() restarts index (if not loaded) at every chunk #12185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
toobaz opened this issue Jan 30, 2016 · 0 comments
Closed

read_csv() restarts index (if not loaded) at every chunk #12185

toobaz opened this issue Jan 30, 2016 · 0 comments
Labels
Milestone

Comments

@toobaz
Copy link
Member

toobaz commented Jan 30, 2016

See this comment. Basically we now have

In [8]: read_csv(StringIO(u'A,B\n1,2\n3,4'))
Out[8]: 
   A  B
0  1  2
1  3  4

but

In [9]: concat(read_csv(StringIO(u'A,B\n1,2\n3,4'), chunksize=1))
Out[9]: 
   A  B
0  1  2
0  3  4

We want the latter to also have index (0,1).

@toobaz toobaz changed the title read_csv restarts index (if not loaded) at every chunk read_csv() restarts index (if not loaded) at every chunk Jan 30, 2016
@jreback jreback added Bug API Design IO CSV read_csv, to_csv labels Jan 30, 2016
@jreback jreback added this to the Next Major Release milestone Jan 30, 2016
@jreback jreback modified the milestones: 0.19.0, Next Major Release Jul 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants