# Calculate number of unique values for each label: num_unique_labels num_unique_labels = df[LABELS].apply(pd.Series.nunique)