Clean up CSV data (#490)

wrap fields containing commas in double quotes
This commit is contained in:
DJ Adams
2023-05-03 16:14:24 +01:00
committed by GitHub
parent dccbd9b009
commit 62adbb5291
2 changed files with 5 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
ID,name,dateOfBirth,placeOfBirth,dateOfDeath,placeOfDeath
101,Emily Brontë,1818-07-30,Thornton, Yorkshire,1848-12-19,Haworth, Yorkshire
107,Charlotte Brontë,1818-04-21,Thornton, Yorkshire,1855-03-31,Haworth, Yorkshire
150,Edgar Allen Poe,1809-01-19,Boston, Massachusetts,1849-10-07,Baltimore, Maryland
170,Richard Carpenter,1929-08-14,King’s Lynn, Norfolk,2012-02-26,Hertfordshire, England
101,Emily Brontë,1818-07-30,"Thornton, Yorkshire",1848-12-19,"Haworth, Yorkshire"
107,Charlotte Brontë,1818-04-21,"Thornton, Yorkshire",1855-03-31,"Haworth, Yorkshire"
150,Edgar Allen Poe,1809-01-19,"Boston, Massachusetts",1849-10-07,"Baltimore, Maryland"
170,Richard Carpenter,1929-08-14,"King’s Lynn, Norfolk",2012-02-26,"Hertfordshire, England"
1 ID,name,dateOfBirth,placeOfBirth,dateOfDeath,placeOfDeath ID name dateOfBirth placeOfBirth dateOfDeath placeOfDeath
2 101,Emily Brontë,1818-07-30,Thornton, Yorkshire,1848-12-19,Haworth, Yorkshire 101 Emily Brontë 1818-07-30 Thornton, Yorkshire 1848-12-19 Haworth, Yorkshire
3 107,Charlotte Brontë,1818-04-21,Thornton, Yorkshire,1855-03-31,Haworth, Yorkshire 107 Charlotte Brontë 1818-04-21 Thornton, Yorkshire 1855-03-31 Haworth, Yorkshire
4 150,Edgar Allen Poe,1809-01-19,Boston, Massachusetts,1849-10-07,Baltimore, Maryland 150 Edgar Allen Poe 1809-01-19 Boston, Massachusetts 1849-10-07 Baltimore, Maryland
5 170,Richard Carpenter,1929-08-14,King’s Lynn, Norfolk,2012-02-26,Hertfordshire, England 170 Richard Carpenter 1929-08-14 King’s Lynn, Norfolk 2012-02-26 Hertfordshire, England