Python - Hitung berapa banyak unik dalam kolom
df['var_1'].nunique() # How many unque values are present in a variable
Andrea Perlato
df['var_1'].nunique() # How many unque values are present in a variable