Create new column based on values from other columns / apply a
For the examples below - in order to show multiple types of rules for the new column - we will assume a DataFrame with columns ''red'', ''green'' and ''blue'', containing floating-point values ranging 0 to 1.