DataFrame.transform

* Provide a function to transform labelled data in a DataFrame
* A dictionary provided to the `DataFrame.transform` matches label keys
  to a lambda function that will be applied to the corresponding column
  in the DataFrame.
* Functions such as those found in the `math` module require scalars or
  length-1 arrays are supported by catching a thrown TypeError.