DOC: provide more inline examples for cookbook.rst
In-line examples when not too long are nice (as well as the link)

for example: https://github.com/pydata/pandas/commit/6fe9539b1c9c5f097d64d72af2c2f26e85dfc0b1
