DOC: Add recipe for shifting groups of values based on the index
Merge pull request #6917 from unutbu/cookbook-apply-shift

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