Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

to get the number of unique values for each column

# Calculate number of unique values for each label: num_unique_labels
num_unique_labels = df[LABELS].apply(pd.Series.nunique)
 
PREVIOUS NEXT
Tagged: #number #unique #values #column
ADD COMMENT
Topic
Name
4+7 =