QuestionQ232

VerifiedDeveloping Apache Spark™ DataFrame/DataSet API Applications

Which of these code blocks prints the schema for the DataFrame storesDF?

Explanation

DataFrame.printSchema() prints a PySpark DataFrame’s schema in tree format. The schema member is a property that returns a StructType; it is not a callable method. PySpark DataFrame.printSchema documentation

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!