Skip to content

Glossary: pandas Basics

Chained assignment

Also written: chained assignment

Changing values through two selections in a row, such as `orders["qty"][mask] = 5`. In pandas 3 it does nothing to the original table and gives a ChainedAssignmentError warning, so use one `.loc` instead.

Where the book teaches it

Related terms

Copy-on-writeloc