You are viewing documentation about an older version (1.14.0). View latest version

snowflake.snowpark.DataFrameReader.option¶

DataFrameReader.option(key: str, value: Any) → DataFrameReader[source]¶

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.