def SQRT(df, price='Close'): """ Square Root """ sqrt_list = [] i = 0 while i < len(df[price]): sqrt = cmath.sqrt(df[price][i]).real sqrt_list.append(sqrt) i += 1 return sqrt_list