S

Sikhar Chaudhary • 5.88K Points
Tutor III

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

Explanation by: Sikhar Chaudhary
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.


Question analytics