如何使Pyarrow CSV作者不添加围绕字符串的双引号
我正在将箭头表写入CSV。
import pyarrow.csv as csv
csv.write_csv(table, 'myfile.csv', csv.WriteOptions(include_header=True,delimiter='|'))
但是,当我查看表格中的每个字符串类型的导出文件时,周围都有双引号。我已经用熊猫写了这张桌子给CSV,而双引号不存在。有什么方法可以用Pyarrow CSV作家避免这种情况?
I am writing an arrow table to csv like this.
import pyarrow.csv as csv
csv.write_csv(table, 'myfile.csv', csv.WriteOptions(include_header=True,delimiter='|'))
but when I look at the exported file every string type in the table has double quotes around it. I have written this table to csv with pandas and the double quotes are not there. Is there any way to avoid this with the pyarrow csv writer?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论