I want to apply a custom function and create a derived column called population2050 that is based on two columns already present in my data frame.
import pandas
Your function,
def function(x): // your operation return x
call your function as,
df['column']=df['column'].apply(function)