15.15 Calculating New Columns From Existing Columns

15.15.1 Problem

You want to calculate a new column of values in a data frame.

15.15.4 See Also

See Recipe 15.16 for how to perform group-wise transformations on data.