Answers for "sql count distinct values with in group by"

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
0

sql count distinct group by

SELECT COUNT(DISTINCT program_name) AS Count,
  program_type AS [Type] 
FROM cm_production 
WHERE push_number=@push_number 
GROUP BY program_type
Posted by: Guest on May-28-2020

Code answers related to "sql count distinct values with in group by"

Python Answers by Framework

Browse Popular Code Answers by Language