Given the following error traceback (from display(df.select(3* " heartrate " ))) which shows AnalysisException: cannot resolve ' heartrateheartrateheartrate ' , which statement describes the error being raised?
A.
There is a type error because a DataFrame object cannot be multiplied.
B.
There is a syntax error because the heartrate column is not correctly identified as a column.
C.
There is no column in the table named heartrateheartrateheartrate.
D.
There is a type error because a column object cannot be multiplied.
Exact extract: “select() expects column names or Column expressions.”
[References: PySpark DataFrame select; Column expressions and col()., ===========]
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit