【发布时间】:2021-11-09 01:49:37
【问题描述】:
我需要找到换行符的所有表示来规避 AzureML 的设计者造成的问题,如下所示:
By default (support_multi_line=False), all line breaks,
including those in quoted field values,
will be interpreted as a record break.
因此,这种设计选择通过夸大其记录并在我的管道中创建错误来破坏我的 DF。
我已经尝试过:
df.replace(to_replace=[r"\\t|\\n|\\r", "\t|\n|\r"], value=["", ""], regex=True, inplace=True)
但它不起作用——在我的 DF 中仍然可以找到换行符——我还应该寻找什么?
【问题讨论】:
-
它出现在哪一列?
标签: python pandas azureml-python-sdk