# New Columns from Old: Math, np.where and cut

Math between columns makes a new column for every row at once, np.where picks one of two values for each row from a True or False column, pd.cut sorts numbers into labeled bands such as budget, mid and premium, and apply runs a function of your own on every value, more slowly than whole-column math.

![Cheat sheet: New Columns from Old: Math, np.where and cut](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/02900311e203467b9fe4733a8bfbc8b8.webp)

- Category: Data Analysis
- Level: Journeyman
- Tags: apply(), cut, Lambda Function, np.where(), python
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/pandas-calculated-columns-cheat-sheet
