splitting one csv into multiple files in python

前端 未结 10 2137
执念已碎
执念已碎 2020-12-05 07:28

I have a csv file of about 5000 rows in python i want to split it into five files.

I wrote a code for it but it is not working

import codecs
import c         


        
10条回答
  •  难免孤独
    2020-12-05 07:54

    if count <= count:
       pass
    

    This condition is always true so you pass everytime

    Otherwise you can look at this post: Splitting a CSV file into equal parts?

提交回复
热议问题