Answers for "pandas groupby list unique values"

2

get list of unique values in pandas column

a = df['column name'].unique() #returns a list of unique values
Posted by: Guest on March-29-2021
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 "pandas groupby list unique values"

Python Answers by Framework

Browse Popular Code Answers by Language