BUG: render dataframe as html do not produce duplicate element id's (#16780)
closes #16780 
tests added / passed
passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff``
whatsnew entry
