简体   繁体   English

如何在数据准备时丢弃(修剪)CSV 文件中的双倒引号?

[英]How to discard (trim) double inverted quotes in CSV file on data prep?

I'm dealing with a csv file that contains double inverted quotes (since the data has commas in it).我正在处理一个包含双引号的 csv 文件(因为数据中有逗号)。 But Google sheets do not show me the double-quotes and hence i'm able to split the column by a delimiter (space in this case) properly, to retrieve its first word.但是 Google 表格没有向我显示双引号,因此我能够通过分隔符(在这种情况下为空格)正确split列,以检索其第一个单词。 The initial column values can be seen in the picture below.初始列值可以在下图中看到。

谷歌表格视图

However, in Data Prep when i upload the csv file, the column's double quotes are considered as a value and it causes extra work (if at all possible) in handling the resulting split data.但是,在数据准备中,当我上传 csv 文件时,该列的双引号被视为一个值,并且在处理生成的拆分数据时会导致额外的工作(如果可能的话)。

Is there a way in Data Prep where we can have the data displayed as in Google Sheets ?在数据准备中有没有办法让我们像在 Google 表格中一样显示数据?

数据准备视图

You can "ignore" these double-quotes, and when running a job, untick the box of "include quotes", then these original quotes shall remain.您可以“忽略”这些双引号,在运行作业时,取消勾选“包含引号”,则保留这些原始引号。 Not perfect, but could be a working workaround.不完美,但可能是一种可行的解决方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM