Skip to content

Glossary: pandas Beyond the Basics

Category dtype

Also written: category, categorical, categories

A column type whose values come from a fixed list of labels. pandas stores each value as a small code plus the list once, which saves memory and lets you give the labels an order.

Where the book teaches it

Related terms

CodeOrdered categoryobserved=False