If You Have any Question ! Click on the Bellow Link and in Comment section , Ask your Question ?
Question Link: https://nasirsoft.com/single_video/65
This videos shows the use and importance of lambda function in python
--------------------------------------------Code -----------------------------------------
//code Start
import pandas as pd
df=pd.DataFrame({
'id':[1,2,3,4,5],
'name':['Nasir','Jawad','Abdul Majid','Zahid','Inam'],
'age':[27,31,30,40,38],
'income':[90000,150000,70000,40000,120000]
})
df['age'] = df['age'].apply(lambda x:x+3)
print(df)
//code End
--------------------------------------References ----------------------------------------------------------
https://www.analyticsvidhya.com/blog/...
--------------------------------------Other Useful Links--------------------------------------------------------
Facebook: / nasirsoft93
Website : https://nasirsoft.com/
LinkedIn : / muhammad-nasir-6b82379b