pandas lambda applu

df.apply(lambda x: your_function)
Sleepy Stoat