I want to apply an arbitrary function to each pair of columns in a pandas DataFrame in a fast and neat manner. Generally, the return value is a scalar in which case I would