Answer: B
Explanation:
head() returns the first n rows of the DataFrame. By default, it returns the first 5 rows.
collect() returns an array of Row objects that represent the entire DataFrame.
count() returns the number of rows in the DataFrame.
take(n) returns the first n rows of the DataFrame as an array of Row objects.
show() prints the first 20 rows of the DataFrame in a tabular form.
Only collect() returns all the rows from the DataFrame.
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.
4be8126
Highly Voted 1 year, 7 months agomahmoud_salah30
Most Recent 11 months ago