QuestionQ280

VerifiedDebugging and Deploying

Review this error traceback:

Question Image

Which statement explains the error that is raised?

Explanation

Multiplying a Python string by 3 repeats the string, so 3 * "heartrate" becomes "heartrateheartrateheartrate". Spark attempts to select that resulting column name, but the table contains heartrate, not the concatenated name.

Community Discussion

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