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
@Ryan, Python3 code worked for me. I used newline='' as below to avoid the blank line issue:
newline=''
with open(target_filepath, 'w', newline='') as target: