snowflake.snowpark.DataFrameReader.format

DataFrameReader.format(format: Literal['csv', 'json', 'avro', 'parquet', 'orc', 'xml']) DataFrameReader[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.33.0/src/snowflake/snowpark/dataframe_reader.py#L560-L578)

Specify the format of the file(s) to load.

Parameters:

format – The format of the file(s) to load. Supported formats are csv, json, avro, parquet, orc, and xml.

Returns:

a DataFrameReader instance that is set up to load data from the specified file format in a Snowflake stage.

Language: English