<reponame>Pulpanj/sas-viya-dmml-pipelines<filename>open_source_code_node/use_output_in_child_nodes/uc_log_transform_var.py<gh_stars>10-100
import numpy as np
print('Input column names:')
print(dm_inputdf.columns)

# Log transform IMP_DEBTINC variable. dm_scoreddf should contain output data.
dm_scoreddf = dm_inputdf
dm_scoreddf['LOG_IMP_DEBTINC'] = np.log(dm_inputdf['IMP_DEBTINC'])
dm_scoreddf.drop('IMP_DEBTINC', axis=1, inplace=True)

print('Output column names:')
print(dm_scoreddf.columns)
import numpy as np
print('Input column names:')
print(dm_inputdf.columns)

# Log transform IMP_DEBTINC variable. dm_scoreddf should contain output data.
dm_scoreddf = dm_inputdf
dm_scoreddf['LOG_IMP_DEBTINC'] = np.log(dm_inputdf['IMP_DEBTINC'])
dm_scoreddf.drop('IMP_DEBTINC', axis=1, inplace=True)

print('Output column names:')
print(dm_scoreddf.columns)
# Log transform IMP_DEBTINC variable. dm_scoreddf should contain output data.