Skip to content

Glossary: pandas Beyond the Basics

str.split

Also written: .str.split(), expand=True

A `.str` method that splits each text value at a separator. `expand=True` puts the pieces in separate columns and `n=1` splits only at the first separator.

Where the book teaches it

Related terms

extractRegular expression (regex)