A

Admin • 802.91K Points
Coach

Q. What is the purpose of `drop_duplicates()`?

  • (A) Removes columns with same name
  • (B) Removes duplicate rows
  • (C) Drops NaN values
  • (D) Sorts the DataFrame
  • Correct Answer - Option(B)
  • Views: 3
  • Filed under category Pandas
  • Hashtags:

Explanation by: Admin
`drop_duplicates()` removes duplicate rows based on all or selected columns.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.