I am converting a excel file to a text file with custom delimeter. However, the output is not what I want to achieve.
- Instead of getting 1|2|3|, I am getting 1|2|3 instead. How can I add the pipe after the 3?
- the number inside one of the columns of the excel file is 001. However, after conversion it became 1. How can I retain 001?
Please help me with the following queries I have above. I have also attached snippets of my code .Thank you
text_file = pd.read_excel(uploadedFile, sheet_name=0)
text_file.to_csv(name + '.txt', header = False, sep='|'