Skip to content

Glossary: pandas Beyond the Basics

Capture group

Also written: group, named group, (?P<name>...)

The part of a regular expression inside `( )` that `.str.extract` returns. A named group `(?P<name>...)` makes the name the column name.

Where the book teaches it

Related terms

Regular expression (regex)extract