Overview
Getting Started
User Guides
API Reference
Development
Migration Guides
Spark SQL
Core Classes
Spark Session
Configuration
Input/Output
DataFrame
Column
Data Types
Row
Functions
Window
Grouping
Catalog
Avro
Observation
UDF
Protobuf
Pandas API on Spark
Structured Streaming
MLlib (DataFrame-based)
Spark Streaming (Legacy)
MLlib (RDD-based)
Spark Core
Resource Management
Errors
pyspark.sql.DataFrameWriterV2.option
¶
DataFrameWriterV2.
option
(
key
:
str
,
value
:
OptionalPrimitiveType
)
→ DataFrameWriterV2
[source]
¶
Add a write option.
New in version 3.1.
pyspark.sql.DataFrameWriterV2.using
pyspark.sql.DataFrameWriterV2.options