Skip to content

Glossary: pandas Beyond the Basics

np.where

Also written: numpy where

A NumPy function that gives one value where a condition is true and another where it is false, for every row at once. It labels rows by a single rule.

Where the book teaches it

Related terms

np.select