Skip to content

Glossary: pandas Basics

drop

Also written: .drop()

Removes columns, as in `.drop(columns=[...])`. It gives back a new DataFrame, so you assign the result.

Where the book teaches it

Related terms

rename