首页 > 解决方案 > pandas/python script for converting to pipe ftext file

问题描述

Consider the below data in Excel (.xlsx) format as Input file.Assume the location is C:\Conversion\input.xlsx

enter image description here

The output file should be in the below pipe limited format as text file. the output should be in the below locations C:\Conversion\output\pip.txt

enter image description here

Please help by providing a Python/pandas script for the above output. Note: I am a new learner.

Thanks in advance

标签: pythonpandas

解决方案


I may be wrong, but this is found in your computer settings. By default your computer is comma delimited. Go to the control panel and find additional settings. There you can change the list separator from commas to pipes.


推荐阅读