DOC: Add recipe for shifting groups of values based on the index