S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which function is used to count the occurrences of unique values in a Series?

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

Explanation by: Shyam Dubey
The value_counts() method counts how many times each unique value appears in a Series.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.