QuestionQ205Verified/Debugging and DeployingCopy linkReport a problemAsk AstroTutorSave questionReview this error traceback: Which statement explains the error that is raised?AThe code executed was PySpark but was executed in a Scala notebook.BThere is no column in the table named heartrateheartrateheartrateCThere is a type error because a column object cannot be multiplied.DThere is a type error because a DataFrame object cannot be multiplied.EThere is a syntax error because the heartrate column is not correctly identified as a column.Show AnswerAnswerExplanationPython evaluates 3 * "heartrate" as the string "heartrateheartrateheartrate". PySpark attempts to select a column with that exact name, but the table contains heartrate rather than heartrateheartrateheartrate; consequently, Spark raises an unresolved-column analysis exception.Show comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion