DOC: add example for Table.collapse
DOC: clean up example
Merge pull request #427 from teravest/example_collapse

DOC: add example for Table.collapse