Added selection example to cookbook

I added a (for me) very helpful Q&A from Stackoverflow on groupby/minimization while retaining the original DataFrame columns. Additionally, I cleaned up some links in the same cookbok section.

(Disclaimer: this is my first pull request.)
Merge pull request #7012 from ojdo/patch-1

Added selection example to cookbook