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

snowflake.snowpark.DataFrameReader.schemaΒΆ

DataFrameReader.schema(schema: StructType) β†’ DataFrameReader[source]ΒΆ

Define the schema for CSV files that you want to read.

Parameters:

schema – Schema configuration for the CSV file to be read.

Returns:

a DataFrameReader instance with the specified schema configuration for the data to be read.