Skip to content

Glossary: pandas Beyond the Basics

nunique

Also written: .nunique(), distinct count

Counts the different values in a column or group. Use it to count orders rather than order lines, since an order has one line per SKU.

Where the book teaches it

Related terms

drop_duplicates