Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas groupby count unique rows

ID, domain
123, 'vk.com'
123, 'vk.com'
123, 'twitter.com'
456, 'vk.com'
456, 'facebook.com'
456, 'vk.com'
456, 'google.com'
789, 'twitter.com'
789, 'vk.com'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #groupby #count #unique #rows
ADD COMMENT
Topic
Name
6+8 =