The code block displayed below contains an error. The code block should count the number of rows that have a predError of either 3 or 6. Find the error.
The isin method is the correct one to use here – the in method does not exist for the Column object.
More info: pyspark.sql.Column.isin — PySpark 3.1.2 documentation
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