Well I am trying to rank a column on the basis of the last 5 values. I am aware of the function df.rank but it takes the complete column which i don\'t want. I also don\'t w