I'm using Python to work with data from csv files, and after reading csv into an array, my data looks like this:
data = [
["10","2018-03-22 14:38:18.329963","name 10","url10","True"],
["11","2018-03-22 14:38:18.433497","name 11","url11","False"],
["12","2018-03-22 14:38:18.532312","name 12","url12","False"]
]
I know I can use "for" loop but my data has around millions of records and the "for" loop takes too long time to run, so do you have any idea to do task listed below without using "for"?
- Convert value from string to integer in column 1 (ie: "10" -> 10)
- Add "http://" in column 3 (ie: "url10" -> "http://url10")
- Convert value in column 4 to boolean (ie: "False" -> False)
Thank you a lot!