Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unique Count
#1
Good afternoon All,

A bit of a newbie in python, so looking for a bit of help with a unique count problem.

I am using the following code on a dataframe:

Stats.groupby('subject_user')[['clicked_user']].count() , which groups by the subject user column and does a count of the clicked user.

How do I tweak this so that:

a) It counts only the unique "clicked-user"


Thank you

Talch
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  count unique letters in a word sunny_awesome 4 8,698 Jun-06-2019, 07:15 PM
Last Post: kotter
  Count Letters in a Sentence (without using the Count Function) bhill 3 5,165 Jun-19-2018, 02:52 AM
Last Post: bhill

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020