Most efficient way to parse a large .csv in python?

前端 未结 4 896
你的背包
你的背包 2020-12-05 15:36

I tried to look on other answers but I am still not sure the right way to do this. I have a number of really large .csv files (could be a gigabyte each), and I want to first

4条回答
  •  悲&欢浪女
    2020-12-05 16:26

    Your first 2 methods are NOT parsing each line into fields. The csv way is parsing out rows (NOT the same as lines!) of fields.

    Do your really need to build a list in memory of all the lines?

提交回复
热议问题