snowflake.snowpark.DataFrameReader.schema¶
- DataFrameReader.schema(schema: StructType) DataFrameReader[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.30.0/snowpark-python/src/snowflake/snowpark/dataframe_reader.py#L454-L474)¶
- Define the schema for CSV files that you want to read. - Parameters:
- schema – Schema configuration for the CSV file to be read. 
- Returns:
- a - DataFrameReaderinstance with the specified schema configuration for the data to be read.