Hey there everyone,
I'm fairly new to Quantopian and I'm having trouble figuring out how to solve a problem with Pipelines and Alphalens.
I was analyzing the forward PE ratio in Alphalens in the notebook, and it would appear that values near the mean have high returns that get progressively lower the further away we get from the mean.
The numeric data in the analysis is garbage because Alphalens assumes that the first quartile should have relatively negative returns and that the last quartile should have relatively positive returns.
I would like to transform this data to adhere to these assumptions, and I think that the number of standard deviations from the mean of the factor would be a better representation of what I'm looking for. I'm not sure of the syntax of how to get this from the data though.