S

Sikhar Chaudhary • 5.88K Points
Tutor III

Q. Which pandas method is used to randomly sample rows from a DataFrame?

  • (A) sample()
  • (B) rand()
  • (C) shuffle()
  • (D) take()
  • Correct Answer - Option(A)
  • Views: 20
  • Filed under category Pandas

Explanation by: Sikhar Chaudhary
The sample() method returns a random sample of rows or columns from a DataFrame.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics