Created
November 12, 2018 00:09
-
-
Save nackjicholson/acdd07215690dd093b45f838853a080c to your computer and use it in GitHub Desktop.
single line string parse a csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> import csv | |
>>> s = '"Yes, this line",can be, parsed as csv' | |
>>> list(csv.reader([s]))[0] | |
['Yes, this line', 'can be', ' parsed as csv'] | |
>>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment