How do I convert each row of a CSV file to a different TXT file?

Alan Zhang 0 Reputation points
2024-02-17T22:39:01.5766667+00:00

I have CSV files, each row having a label. However, Azure needs TXT files to label, so I need to convert each row into a separate TXT file. When I tried to use Python, it kept returning a unicode decode error. I tried searching the web for solutions, but nothing seems to work.

Community Center Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jadav Netra Piyush 0 Reputation points
    2024-02-18T05:20:40.9+00:00

    ren yourfile.csv yourfile.txt You run this command on your terminal. or else create a function in your program which converts csv to text

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.