S

Shyam Dubey • 3.70K Points
Extraordinary

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: 2
  • Filed under category Pandas
  • Hashtags:

Explanation by: Shyam Dubey
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.

Be the first to start discuss.