DOC: fix typo in cookbook.rst
Removing the semicolon delimiter at the end of the modified line of code allows the line's output to be displayed.

- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
