Apply some functions to columns of a dataframe

This is a very different question. Please post it in a new thread.

Additionally, take a look at a little guide for asking informative questions.