DataFrame.
printSchema
Prints out the schema in the tree format.
Examples
>>> df.printSchema() root |-- age: integer (nullable = true) |-- name: string (nullable = true)
previous
pyspark.sql.DataFrame.persist
next
pyspark.sql.DataFrame.randomSplit