## Getting a dataset as input to python node df=in1 ## Importing libraries import pandas as pd import numpy as np df=pd.DataFrame(df) ## Deriving new columns df['ac']=df['acquisition_expense'] if df.calendarpd==1 else 0 df['total_revenue']=df.expected_benefit+df.expense+df.release+df.ac df['cost']=(df.expense+df.ac)*(-1) ## Output of the node:resulting dataframe out1=df