PANDAS LAMBDA APPLU

df.apply(lambda x: your_function)
Sleepy Stoat