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
When using a regular expression in the sep argument of read_csv, the Python parser disregards quotes in the input file.
In the following example, example.csv is parsed correctly by read_csv without regexes in sep, while the version with regexes (which should evaluate to exactly the same as the previous version) fails because it parses the commas inside the quotes.
example2.csv, which doesn't contain quotes, is parsed correctly using the same code.
jreback
changed the title
BUG: read_csv() ignores quotes when a regex is used in sep
DOC: read_csv() ignores quotes when a regex is used in sep
Jan 7, 2016
When using a regular expression in the
sep
argument ofread_csv
, the Python parser disregards quotes in the input file.In the following example,
example.csv
is parsed correctly byread_csv
without regexes insep
, while the version with regexes (which should evaluate to exactly the same as the previous version) fails because it parses the commas inside the quotes.example2.csv
, which doesn't contain quotes, is parsed correctly using the same code.The text was updated successfully, but these errors were encountered: