nxcals.api.extraction.data.builders.DataFrame.schema

property DataFrame.schema: StructType

Returns the schema of this DataFrame as a pyspark.sql.types.StructType.

New in version 1.3.0.

Examples

>>> df.schema
StructType([StructField('age', IntegerType(), True),
            StructField('name', StringType(), True)])