S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which pandas method is used to remove duplicate rows from a DataFrame?

  • (A) drop_duplicates()
  • (B) remove_duplicates()
  • (C) unique()
  • (D) distinct()
  • Correct Answer - Option(A)
  • Views: 18
  • Filed under category Pandas
  • Hashtags:

Explanation by: Shyam Dubey

The drop_duplicates() method 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.