DOC: add examples to set_index method
 - [x] related to #16416 
 - [x] tests added / passed
 - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff``
 - [ ] whatsnew entry

Added better examples in the doc for the dataframe set_index() method.