
Python : convert each row of a csv file into a separate txt file
- or -
Post a project like this1705
£24(approx. $32)
- Posted:
- Proposals: 18
- Remote
- #2944041
- Awarded
Backend designer specialize in web scraping, game development and machine learning
Python | Data Analyst | Pandas | Seaborn | Matplotlib | Web Scraping | Automation

Prezi, presentations, font designs, graphic designs, Illustrations, animations, video editing & programming

430461379066625041113468739146940752412127467521262519142971327920672761601342916




Description
Experience Level: Entry
I need to save each row of a csv file into separate .txt files, each in their own directory. Each directory name is based on data in the row.
There are 5 fields in each row. One field is the name of the directory with slight manipulation to remove dashes. All .txt files to be called article.txt.
Word document showing how csv fields map to txt fields attached. Short csv file (3 rows - would normally be 100) and example article.txt also attached
I would like this written in Python if possible.
I hope this is an easy script but please let me know if I have underestimated it. Thank you!
There are 5 fields in each row. One field is the name of the directory with slight manipulation to remove dashes. All .txt files to be called article.txt.
Word document showing how csv fields map to txt fields attached. Short csv file (3 rows - would normally be 100) and example article.txt also attached
I would like this written in Python if possible.
I hope this is an easy script but please let me know if I have underestimated it. Thank you!

E S.
100% (2)Projects Completed
2
Freelancers worked with
1
Projects awarded
75%
Last project
5 Feb 2021
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies