I need to take log values of each element of a column in a DataFrame.Also i want to add the resulted column to the previous dataframe.
This is my dataframe
df1=pd.read_csv('doctors.csv',encoding='latin-1')
These are the columns
Index(['PatientID', 'Pregnancies', 'PlasmaGlucose', 'DiastolicBloodPressure',
'TricepsThickness', 'SerumInsulin', 'BMI', 'DiabetesPedigree', 'Age',
'Diabetic', 'Physician'],
dtype='object')
I want to form a new column of logarithmic values for 'Age' column.