Modifying the post a bit to make it clearer
I'm trying to determine the growth rate for two EPS values: the current quarter vs the same quarter a year ago. The challenge that I'm finding is that depending if the earnings are positive or negative, the sign on the growth rate is not correct. I would normally just use a conditional statement and apply a negative sign correctly, but this is all captured in factors and I haven't been able to figure out how to conditionally change the sign. I tried "np.where" but got errors.
I've attached a notebook to hopefully make it easier for someone to help.
Thanks!
--Brian