snowflake.snowpark.DataFrameReader.option

DataFrameReader.option(key: str, value: Any) DataFrameReader[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/dataframe_reader.py#L756-L783)

Sets the specified option in the DataFrameReader.

Use this method to configure any format-specific options and copy options. (Note that although specifying copy options can make error handling more robust during the reading process, it may have an effect on performance.)

Parameters:
  • key – Name of the option (e.g. compression, skip_header, etc.).

  • value – Value of the option.

Language: English