The code block shown below contains an error. The code block is intended to print the schema of DataFrame storesDF. Identify the error. Code block: storesDF.printSchema
A.
There is no printSchema member of DataFrame – schema and the print() function should be used instead.
B.
The entire line needs to be a string – it should be wrapped by str().
C.
There is no printSchema member of DataFrame – the getSchema() operation should be used instead.
D.
There is no printSchema member of DataFrame – the schema() operation should be used instead.
E.
The printSchema member of DataFrame is an operation and needs to be followed by parentheses.
E. The printSchema member of DataFrame is an operation and needs to be followed by parentheses.
The correct code block should be storesDF.printSchema() with parentheses to indicate that it's a method call.
upvoted 3 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
jds0
4 months ago4be8126
1 year, 6 months ago