BUG: fix doctests in pandas.core.common

$ nosetests pandas/core/common.py --with-doc -v
Merge pull request #8931 from rupertthompson/fix/core_common_doctests

BUG: fix doctests in pandas.core.common