Q. Which method is used to get the shape of a DataFrame?
β
Correct Answer: (C)
df.shape
Explanation: The shape attribute returns a tuple representing the number of rows and columns in a DataFrame.