Q. Which method is used to get the first n rows of a DataFrame?
β
Correct Answer: (A)
head()
Explanation: The head(n) method returns the first n rows of a DataFrame.