# Prints out the schema in the tree format df.printSchema() # root # |-- age: integer (nullable = true) # |-- name: string (nullable = true)