Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python log transform column

# log transfrom column 'colA' and re-add to dataframe as new column 'colA_log'
import numpy as np
df['colA_log'] = np.log(df['colA'])
 
PREVIOUS NEXT
Tagged: #python #log #transform #column
ADD COMMENT
Topic
Name
1+4 =