def Incap(self): df1 = self.sharedf incap=[] for x in df1['market_value']: incap.append(math.log(x,math.e)) df1['incap'] = incap return df1[['date','incap']]