python - 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
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
Please help by providing a Python/pandas script for the above output. Note: I am a new learner.
- The output txt file should not contain any junk and bad character.
- if the value is blank any cell (input file), it need to store as null value.
Thanks in advance
解决方案
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.
推荐阅读
- javascript - 检查平板电脑是否与设备的操作系统无关
- c++ - 无法取消引用超出范围的向量迭代器 - 有什么问题?
- google-app-maker - 从表格小部件中的第一条记录中删除焦点?
- flutter - 如何检查数组中是否存在元素,如果存在则更新它
- msbuild - 我的 VS 项目不断使用 msbuild 重建
- c - C 中的 char** 数组越界行为
- mysql - 从非sql查询获取结果集
- c# - Moq 如何模拟数据以进行模式匹配?
- java - 来自 Java 的 CloudFlare (Memberful) 发布请求会产生 403 错误
- java - 如何在使用 PowerMockito 测试框架进行 junit 测试时将接口引用注入 Spring Controller?