pandera.api.pyspark.container.DataFrameSchema.to_structtype¶
- DataFrameSchema.to_structtype()[source]¶
Recover fields of DataFrameSchema as a Pyspark StructType object.
- As the output of this method will be used to specify a read schema in Pyspark
(avoiding automatic schema inference), the False nullable properties are just ignored, as this check will be executed by the Pandera validations after a dataset is read.
- Return type:
- Returns:
StructType object with current schema fields.