As a test, I wanted to see how the rank of returns could be used as a factor in alphalens. I shifted the 'get_pricing' dataframe so that I could compare the current returns with current returns i.e. I used returns to predict itself (using close prices). The fact that I used ranks means that good performance is never guaranteed - it all depends on how the market did on any given day. However, when comparing mean returns by quantile, one should expect them to be increasing from left to right but this not the case. After all, we are perfectly predicting the ranks. Please if someone could assist in helping me understand this? Please refer to the notebook attached.