pandas3 Flashcards

1
Q

count unique values in a column

A

df[‘col’].nunique()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly