Skip to content

read_csv fails when a column ends in a quote. #2506

Closed
@jvangael

Description

@jvangael

I use pandas to read csv files that I get from mysql. Using pandas 0.9 and 0.10 beta, the following files give unexpected results when using read_csv

"A","B"
"row_1","foo""
"row_2","bar"

output is

row_1 foo"\nrow_2" bar

When I add a space after the first quote after foo,

"A","B"
"row_1","foo" "
"row_2","bar"

we do get the correct number of rows back but output is still unexpected

0 row_1 foo\ "
1 row_2 bar

Metadata

Metadata

Assignees

No one assigned

    Labels

    IO DataIO issues that don't fit into a more specific label

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions