Pandas Lambda Appl

df.apply(lambda x: your_function)
Sleepy Stoat