Q. Which pandas method is used to randomly sample rows from a DataFrame?
β
Correct Answer: (A)
sample()
Explanation: The sample() method returns a random sample of rows or columns from a DataFrame.