Skip to content

Glossary: pandas Basics

nunique

Also written: .nunique(), .unique(), unique

`.unique()` lists the different values in a column in order of first appearance, and `.nunique()` counts them.

Where the book teaches it

Related terms

value_counts