S

Sikhar Chaudhary • 5.88K Points
Tutor III

Q. Which function is used to get the number of unique values in a Series?

  • (A) unique()
  • (B) nunique()
  • (C) count_unique()
  • (D) value_counts()
  • Correct Answer - Option(B)
  • Views: 22
  • Filed under category Pandas

Explanation by: Sikhar Chaudhary
The nunique() method returns the count of distinct values in a Series.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics