S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which pandas method is used to count the frequency of values in a Series?

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

Explanation by: Shyam Dubey
value_counts() counts the number of occurrences of each unique value in a Series.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.