Answers for "count distinct with groupby mysql"

SQL
3

mysql group_concat distinct

SELECT GROUP_CONCAT(DISTINCT categories ORDER BY categories ASC SEPARATOR ' ') FROM table
Posted by: Guest on October-23-2020
3

pandas groupby column count distinct values

# Pandas group by a column looking at the count unique/count distinct values of another column

df.groupby('param')['group'].nunique()
Posted by: Guest on May-15-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language