I have more than 10GB .csv files. I m trying to import the data from these files into MySQL using python. Since csv files are comma separated files, and I have data which itself contains commas, therefore I can not use ‘,’ here for splitting. There please suggest some other option
for splitting the csv file.
I want to import the data from the csv file(where the data itself contains comma) to MySQL (i am using Wamp server for the same).
I have data like ‘london, u.k.’, ‘2010’, ‘credit, saving’
I have more than 10GB .csv files. I m trying to import the data
Share
First of all, I am assuming that the CSV files have quotes around the string values.
Thus each value containing a comma is surrounded by a quote like this:
If so, then you can use the following:
import
If otherwise it’ll depend on how your CSV files look like.