Pandas Lambda Applu

df.apply(lambda x: your_function)
Sleepy Stoat