Dataframe 无法写入没有标头的Dynamicframe

Dataframe 无法写入没有标头的Dynamicframe,dataframe,pyspark,aws-glue,Dataframe,Pyspark,Aws Glue,您好,我正在将拼花文件转换为csv,并希望写入它而不带标题。我已经注意到了这一点 下面是我的代码: datasink3 = applymapping1.coalesce(1) datasink2 = glueContext.write_dynamic_frame.from_options(frame = datasink3, connection_type = "s3", connection_options = {"path": "s3://saphana12/output1"}, form

您好,我正在将拼花文件转换为csv,并希望写入它而不带标题。我已经注意到了这一点

下面是我的代码:

datasink3 = applymapping1.coalesce(1)

datasink2 = glueContext.write_dynamic_frame.from_options(frame = datasink3, connection_type = "s3", connection_options = {"path": "s3://saphana12/output1"}, format = "csv", format_options = {"writeHeader":'false',"quoteChar":'-1',"separator":'|'}, transformation_ctx = "datasink2")
我看到标题仍然出现

我做错什么了吗

请在这方面帮助我

使用{“writeHeader”:False,“quoteChar”:“-1”,“separator”:“|”},transformation_ctx=“datasink2”)

不是声明“false”,而是声明false,因为它是布尔值