Getting Started
User Guide
API Reference
Development
Migration Guide
Spark SQL
Core Classes
Spark Session
Configuration
Input/Output
DataFrame
Column
Data Types
Row
Functions
Window
Grouping
Catalog
Observation
Avro
Pandas API on Spark
Structured Streaming
MLlib (DataFrame-based)
Spark Streaming
MLlib (RDD-based)
Spark Core
Resource Management
pyspark.sql.DataFrameReader.option
¶
DataFrameReader.
option
(
key
:
str
,
value
:
OptionalPrimitiveType
)
→ DataFrameReader
[source]
¶
Adds an input option for the underlying data source.
New in version 1.5.
pyspark.sql.DataFrameReader.load
pyspark.sql.DataFrameReader.options