Skip to content

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

Closed
@toobaz

Description

@toobaz

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions