A

Admin • 833.24K Points
Coach

Q. What does `df.duplicated().sum()` return?

  • (A) Total duplicate values in the DataFrame
  • (B) Total duplicate rows in the DataFrame
  • (C) Total NaN values
  • (D) Number of rows
  • Correct Answer - Option(B)
  • Views: 20
  • Filed under category Pandas
  • Hashtags:

Explanation by: Admin

`duplicated()` returns a boolean Series, and `sum()` counts duplicates.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.